floehopper/mocha — Issue #59: Examples for sequences should show expectations across multiple objects
Author: floehopper
Created: 2012-01-31 08:20:50+00:00
State: open

```ruby
require "test/unit"
require "mocha"

class FooTest < Test::Unit::TestCase
def test_foo
sequence = sequence(:task_order)
task_one = mock("task_one")
task_two = mock("task_two")

task_one.expects(:execute).in_sequence(sequence)
task_two.expects(:execute).in_sequence(sequence)

task_one.execute
task_two.execute
end
end
```