Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View specs fail with "method `protect_against_forgery?' not defined in #<Module:0x10a678468>" #386

Closed
cgriego opened this issue May 4, 2011 · 3 comments

Comments

@cgriego
Copy link
Contributor

cgriego commented May 4, 2011

I'm attempting to upgrade a Rails 3.0 app to 3.1 edge but all of my view specs fail within action_view/test_case.

Failure/Error: Unable to find matching line from backtrace
NameError:
  method `protect_against_forgery?' not defined in #<Module:0x10a678468>
# ruby/1.8/bundler/gems/rails-92661b0c501a/actionpack/lib/action_view/test_case.rb:132:in `remove_method'
# ruby/1.8/bundler/gems/rails-92661b0c501a/actionpack/lib/action_view/test_case.rb:132:in `say_no_to_protect_against_forgery!'
# ruby/1.8/bundler/gems/rails-92661b0c501a/actionpack/lib/action_view/test_case.rb:131:in `module_eval'
# ruby/1.8/bundler/gems/rails-92661b0c501a/actionpack/lib/action_view/test_case.rb:131:in `say_no_to_protect_against_forgery!'
# ruby/1.8/bundler/gems/rails-92661b0c501a/actionpack/lib/action_view/test_case.rb:100:in `setup_with_controller'
# ruby/1.8/gems/rspec-rails-2.5.0/lib/rspec/rails/adapters.rb:11:in `send'
# ruby/1.8/gems/rspec-rails-2.5.0/lib/rspec/rails/adapters.rb:11:in `setup'
@josevalim
Copy link
Contributor

Can you post a failing application on github? I will look into it asap.

@josevalim
Copy link
Contributor

Please check if it is fixed on master.

@cgriego
Copy link
Contributor Author

cgriego commented May 5, 2011

Fixed! Thanks José.

@cgriego cgriego closed this as completed May 5, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants