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

Projects
None yet
2 participants
@cgriego
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

This comment has been minimized.

Show comment
Hide comment
@josevalim

josevalim May 4, 2011

Contributor

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

Contributor

josevalim commented May 4, 2011

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

@josevalim

This comment has been minimized.

Show comment
Hide comment
@josevalim

josevalim May 4, 2011

Contributor

Please check if it is fixed on master.

Contributor

josevalim commented May 4, 2011

Please check if it is fixed on master.

@cgriego

This comment has been minimized.

Show comment
Hide comment
@cgriego

cgriego May 5, 2011

Contributor

Fixed! Thanks José.

Contributor

cgriego commented May 5, 2011

Fixed! Thanks José.

@cgriego cgriego closed this May 5, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment