test/spec/api/mocks/mock_ordering_test.rb in rspec-0.5.6 vs test/spec/api/mocks/mock_ordering_test.rb in rspec-0.5.7

- old
+ new

@@ -23,9 +23,37 @@ assert_raise(MockExpectationError) do @mock.two end end + def FIXME_test_two_in_order_calls_with_block + @mock.should.receive(:doit).ordered do |a, b| + a.should_equal "a1" + a.should_equal "b1" + end + @mock.should.receive(:doit).ordered do |a, b| + a.should_equal "a2" + a.should_equal "b2" + end + @mock.doit "a1", "b1" + @mock.doit "b1", "b2" + @mock.__verify + end + + def FIXME_test_two_out_of_order_calls_with_block + @mock.should.receive(:doit).ordered do |a, b| + a.should_equal "a1" + a.should_equal "b1" + end + @mock.should.receive(:doit).ordered do |a, b| + a.should_equal "a2" + a.should_equal "b2" + end + @mock.doit "b1", "b2" + @mock.doit "a1", "b1" + @mock.__verify + end + def test_three_linear_calls @mock.should.receive(:one).ordered @mock.should.receive(:two).ordered @mock.should.receive(:three).ordered @mock.one \ No newline at end of file