#23 ✓resolved
baphled (at boodah)

Fix issue with cucumber tests failing when all run

Reported by baphled (at boodah) | April 14th, 2010 @ 08:45 AM | in 0.8.0

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.

Comments and changes to this ticket

  • baphled (at boodah)

    baphled (at boodah) April 15th, 2010 @ 10:32 AM

    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.

  • baphled (at boodah)

    baphled (at boodah) April 15th, 2010 @ 10:37 AM

    • Milestone set to 0.8.0

    Will review this issue before we merge to master.

  • baphled (at boodah)

    baphled (at boodah) April 21st, 2010 @ 09:01 PM

    • 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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Bridging the gap between clients and developers

Shared Ticket Bins

People watching this ticket

Attachments

Pages