Fix issue with cucumber tests failing when all run
-
baphled@boodah.net
Scenario's are breaking due to the following code
Given /^there is a "([^\"]*)"$/ do |model| pending 'This step seems to cause all subsequent steps to break which use find on a model, need to find out why' @model = mock_model(model.capitalize.constantize).as_null_object model.capitalize.constantize.stub!(:find).and_return @model endIn the features/step_definitions/information_and_summary_steps.rb.
-
baphled@boodah.net
- State changed from open to resolved
This is now resolved after modifying our features/support/env.rb file with the following
require 'spec/stubs/cucumber'and
Before do $rspec_mocks ||= Spec::Mocks::Space.new end After do $rspec_mocks.reset_all end
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
