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

Keep RSpec configuration between runs #25

Merged
merged 1 commit into from
Apr 21, 2013
Merged

Keep RSpec configuration between runs #25

merged 1 commit into from
Apr 21, 2013

Conversation

soulim
Copy link
Contributor

@soulim soulim commented Apr 21, 2013

RSpec resets the world and configuration objects after each run
(https://github.com/rspec/rspec-core/blob/master/lib/rspec/core/runner.rb#L83). All custom helpers and matchers aren't accessible after reset.

So it's better to keep the RSpec's configuration defined in spec_helper.rb, because this
file is loaded only one (before the first run).

It should fix issues #13 and #19.

RSpec resets the world and configuration objects after each run
(https://github.com/rspec/rspec-core/blob/master/lib/rspec/core/runner.rb#L83).

So it's better to keep the configuration defined in spec_helper.rb, because this
file is loaded only once (at the first run of guard-jruby-rspec).
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

Successfully merging this pull request may close these issues.

2 participants