summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/command_spec.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/unit/command_spec.rb b/spec/unit/command_spec.rb
index a3eddf1..fc041d4 100644
--- a/spec/unit/command_spec.rb
+++ b/spec/unit/command_spec.rb
@@ -20,12 +20,13 @@ module Nasty
context "without parameters" do
let(:first_command) { SimpleCommand.new }
let(:second_command) { SimpleCommand.new }
+ let(:third_command) { SimpleCommand.new }
- it "chains two commands together" do
- result = first_command.then(second_command)
- result.run
+ it "chains multiple commands together" do
+ first_command.then(second_command).then(third_command).run
first_command.ran?.should be_true
second_command.ran?.should be_true
+ third_command.ran?.should be_true
end
end