You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using guard-jruby-rspec for model testing, everything works as expected - when saving a file, tests are run.
But there's an issue w/ capybara/rspec integration tests - You can only run the tests once.
When running repeat tests, You get the error:
#<NoMethodError: undefined method `background' for #<Class:0x203d2643>>
The corresponding helpers are not included in the test case.
Here's the test case:
require'spec_helper'feature'FunctionalZone'doapself.included_modulesbackgrounddo
...
end
...
end
When running the test for the first time, this is the list of the included modules:
As You can see, Capybara helpers are not included anymore.
Is this a problem that only I have, or do others have this too?
I'll try to reproduce this issue in a small aplication later today.
I'm using JRuby 1.7.0 (also tried 1.6.7.2 - same result), Rails 3.2.8, RSpec 2.12.0, guard-jruby-rspec 0.1.5, capybara 1.1.3
The text was updated successfully, but these errors were encountered:
Hi!
When using guard-jruby-rspec for model testing, everything works as expected - when saving a file, tests are run.
But there's an issue w/ capybara/rspec integration tests - You can only run the tests once.
When running repeat tests, You get the error:
#<NoMethodError: undefined method `background' for #<Class:0x203d2643>>
The corresponding helpers are not included in the test case.
Here's the test case:
When running the test for the first time, this is the list of the included modules:
On subsequent runs, this list is much smaller:
As You can see, Capybara helpers are not included anymore.
Is this a problem that only I have, or do others have this too?
I'll try to reproduce this issue in a small aplication later today.
I'm using JRuby 1.7.0 (also tried 1.6.7.2 - same result), Rails 3.2.8, RSpec 2.12.0, guard-jruby-rspec 0.1.5, capybara 1.1.3
The text was updated successfully, but these errors were encountered: