Sha256: c25991b2271a308c0ef88fc176a5452b79b67841913b78584166449a1421b858
Contents?: true
Size: 828 Bytes
Versions: 12
Compression:
Stored size: 828 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.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.scenario(@double) @space.ordered_scenarios.should == [] @space.register_ordered_scenario scenario1 @space.ordered_scenarios.should == [scenario1] scenario2 = @space.scenario(@double) @space.register_ordered_scenario scenario2 @space.ordered_scenarios.should == [scenario1, scenario2] end end end
Version data entries
12 entries across 12 versions & 1 rubygems