test/unit/stored_commands_tests.rb in scmd-3.0.1 vs test/unit/stored_commands_tests.rb in scmd-3.0.2
- old
+ new
@@ -135,10 +135,10 @@
should "know if it is equal to another stub or not" do
stub1 = Stub.new(@cmd_str)
stub2 = Stub.new(@cmd_str)
assert_equal stub1, stub2
- Assert.stub(stub1, [:cmd_str, :hash].choice){ Factory.string }
+ Assert.stub(stub1, [:cmd_str, :hash].sample){ Factory.string }
assert_not_equal stub1, stub2
end
end