rubysherpas / r4ia

A place to file issues for Rails 4 in Action
2 stars 0 forks source link

6.3 error when setting up warden's login_as method #19

Closed chrislerum closed 9 years ago

chrislerum commented 9 years ago

config.after(type: :feature) { Warden.test_reset! }

gives me:

ticketee/spec/rails_helper.rb:12:in block in <top (required)>': undefined local variable or methodconfig' for main:Object (NameError)

radar commented 9 years ago

Can you please show us the full context of where you're putting this line in the file?

On 3 Feb 2015, at 02:08, Chris Lerum notifications@github.com wrote:

config.after(type: :feature) { Warden.test_reset! }

gives me:

ticketee/spec/rails_helper.rb:12:in block in <top (required)>': undefined local variable or methodconfig' for main:Object (NameError)

— Reply to this email directly or view it on GitHub.

chrislerum commented 9 years ago

it was in rspec config, but can close this as it was resolved by restarting spring.

— Sent from Mailbox

On Mon, Feb 2, 2015 at 2:34 PM, Ryan Bigg notifications@github.com wrote:

Can you please show us the full context of where you're putting this line in the file?

On 3 Feb 2015, at 02:08, Chris Lerum notifications@github.com wrote:

config.after(type: :feature) { Warden.test_reset! }

gives me:

ticketee/spec/rails_helper.rb:12:in block in <top (required)>': undefined local variable or methodconfig' for main:Object (NameError)

— Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub: https://github.com/railsbook/r4ia/issues/19#issuecomment-72521762

radar commented 9 years ago

I have doubt that it was in the correct block. You wouldn't be getting that error if it was in the block.

On 3 Feb 2015, at 06:48, Chris Lerum notifications@github.com wrote:

it was in rspec config, but can close this as it was resolved by restarting spring.

— Sent from Mailbox

On Mon, Feb 2, 2015 at 2:34 PM, Ryan Bigg notifications@github.com wrote:

Can you please show us the full context of where you're putting this line in the file?

On 3 Feb 2015, at 02:08, Chris Lerum notifications@github.com wrote:

config.after(type: :feature) { Warden.test_reset! }

gives me:

ticketee/spec/rails_helper.rb:12:in block in <top (required)>': undefined local variable or methodconfig' for main:Object (NameError)

— Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub: https://github.com/railsbook/r4ia/issues/19#issuecomment-72521762 — Reply to this email directly or view it on GitHub.