Created
April 22, 2013 22:21
-
-
Save Uepsilon/5439076 to your computer and use it in GitHub Desktop.
How can you set "skip_request" to false for the dynamic its
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
context "with valid params" do | |
before(:each, :skip_request => false) { post :create, user: attributes_for(:user) } | |
it "should increase Usercount by 1", skip_request: true do | |
expect { | |
post :create, user: attributes_for(:user) | |
}.to change(User, :count).by(1) | |
end | |
it { should redirect_to(:admin_users) } | |
it { assigns(:user).should be_a(User) } | |
it { assigns(:user).should be_persisted } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment