Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Fix issue with cucumber tests failing when all run

#23

For some reason, when our plain features are all run, 18 of our test fail but if we try to run them one after each other or individually the tests past. Need to get to the bottom of this.

Reported by baphled@boodah.net · April 14th, 2010 @ 08:45 AM

State: resolved
Milestone: 0.8.0
Assigned to: baphled@boodah.net baphled@boodah.net

Activity

  1. baphled@boodah.net
    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
    end
    

    In the features/step_definitions/information_and_summary_steps.rb.

    April 15th, 2010 @ 10:32 AM

  2. baphled@boodah.net
    baphled@boodah.net
    • Milestone set to 0.8.0

    Will review this issue before we merge to master.

    April 15th, 2010 @ 10:37 AM

  3. baphled@boodah.net
    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
    

    April 21st, 2010 @ 09:01 PM

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.