Sha256: 2b7b5f56b8601ee92ccea7c6cbae133099ec1e4c2be72ff9efd54a4b431fd309
Contents?: true
Size: 849 Bytes
Versions: 14
Compression:
Stored size: 849 Bytes
Contents
require "examples/example_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 = @space.create_double(@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.create_scenario(@double) @space.ordered_scenarios.should == [] @space.register_ordered_scenario scenario1 @space.ordered_scenarios.should == [scenario1] scenario2 = @space.create_scenario(@double) @space.register_ordered_scenario scenario2 @space.ordered_scenarios.should == [scenario1, scenario2] end end end
Version data entries
14 entries across 14 versions & 1 rubygems