Sha256: 42b395accd7e79a26078ee297d96c2a6e6ae5fd9d97874c0cc7e227e8199f471
Contents?: true
Size: 907 Bytes
Versions: 3
Compression:
Stored size: 907 Bytes
Contents
require "spec/spec_helper" module RR describe Space, "#register_ordered_scenario" do it_should_behave_like "RR::Space" before(:each) do @space = Space.new @original_space = Space.instance Space.instance = @space @object = Object.new @method_name = :foobar @double_insertion = @space.double_insertion(@object, @method_name) end after(:each) do Space.instance = @original_space end it "adds the ordered scenario to the ordered_scenarios collection" do scenario1 = @space.scenario(@double_insertion) @space.ordered_scenarios.should == [] @space.register_ordered_scenario scenario1 @space.ordered_scenarios.should == [scenario1] scenario2 = @space.scenario(@double_insertion) @space.register_ordered_scenario scenario2 @space.ordered_scenarios.should == [scenario1, scenario2] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rr-0.4.1 | spec/rr/space/space_register_spec.rb |
rr-0.4.2 | spec/rr/space/space_register_spec.rb |
rr-0.4.0 | spec/rr/space/space_register_spec.rb |