Sha256: 41a77f65a935e9caf1b663a0ffefd64b74f57840f40137ec9ce8bf66b239db3a
Contents?: true
Size: 879 Bytes
Versions: 7
Compression:
Stored size: 879 Bytes
Contents
dir = File.dirname(__FILE__) require "#{dir}/../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
7 entries across 7 versions & 1 rubygems