cavalle / steak

DISCONTINUED - The delicious combination of RSpec and Capybara for Acceptance BDD
MIT License
762 stars 30 forks source link

Not resetting sessions between scenarios (Steak + Capybara) #20

Closed maxim closed 13 years ago

maxim commented 13 years ago

Using Rails 3.0.1, Capybara 0.4.0, Steak 1.0.0.rc.1.

In order for session to be reset had to add the following to acceptance_helper.rb

RSpec.configure do |config|
  config.before do 
    Capybara.reset_sessions! 
  end
end
cavalle commented 13 years ago

Apparently capybara add automatically this for cucumber. So I think it would make sense to add it from Steak. Only thing to keep in mind is that Steak might be used without Capybara.

I'm afraid I don't have the time to do this now, but patches are always welcome.

cavalle commented 13 years ago

I've opened this issue in Capybara trying to add for RSpec 2/Steak the same support that is present for Cucumber.

https://github.com/jnicklas/capybara/issues/issue/202

wincent commented 13 years ago

I think this is fixed upstream now in this commit:

https://github.com/jnicklas/capybara/commit/aa46894ce79af589fa5148bba2533e05a7f6e910

cavalle commented 13 years ago

Right!