I have following code
@user = FactoryGirl.create(:admin)
post :create, company: attributes_for(:company)
expect Company.count.should == 1
I can't execute post because i have authenticate user method on all controllers, how can i sign in user before that action , i am using devise.