Skip to content

Commit 4929c95

Browse files
committed
Changed spec for ruby 1.8.x
1 parent 82f098b commit 4929c95

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

spec/invocation_spec.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,14 @@
6060

6161
it "returns the command chain" do
6262
expect(I.new.invoke("two")).to eq([ :two ])
63-
expect(J.start(["one", "two" ])).to eq([ :one, :two ])
63+
64+
if RUBY_VERSION < '1.9.3'
65+
result = J.start(["one", "two" ])
66+
expect(result).to include(:one)
67+
expect(result).to include(:two)
68+
else
69+
expect(J.start(["one", "two" ])).to eq([ :one, :two ])
70+
end
6471
end
6572

6673
it "dump configuration values to be used in the invoked class" do

0 commit comments

Comments
 (0)