We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stub
The following does not work as expected:
double TestDouble do def self.add_one(value) value + 1 end end it "adds one to the value" do TestDouble.add_one(2).should eq(3) end
The test fails with an UnexpectedMessage error.
UnexpectedMessage
Using the stub keyword works, but this should be optional.
double TestDouble do stub def self.add_one(value) value + 1 end end it "adds one to the value" do TestDouble.add_one(2).should eq(3) end
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following does not work as expected:
The test fails with an
UnexpectedMessage
error.Using the
stub
keyword works, but this should be optional.The text was updated successfully, but these errors were encountered: