Skip to content

Instantly share code, notes, and snippets.

@universal
Forked from enricostano/users_controller_spec.rb
Created October 10, 2012 12:25
Show Gist options
  • Save universal/3865294 to your computer and use it in GitHub Desktop.
Save universal/3865294 to your computer and use it in GitHub Desktop.
describe "GET #new" do
before do
@user = User.new
User.stub(:new).and_return(@user)
end
it "authorizes access" do
should_authorize(:new, @user)
get :new
ned
it "responds with success" do
get :new
response.should be_success
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment