Remove unecessary #to_s calls

This commit is contained in:
Michael Miller 2018-10-19 11:01:22 -06:00
parent 7f4690b042
commit 15ac60b17b
3 changed files with 56 additions and 46 deletions

View file

@ -2,10 +2,20 @@ require "../spec_helper"
describe Spectator::Expectations::ValueExpectationPartial do
describe "#actual" do
it "contains the value passed to the constructor" do
actual = 777
partial = Spectator::Expectations::ValueExpectationPartial.new(actual.to_s, actual)
partial.actual.should eq(actual)
context "with a label" do
it "contains the value passed to the constructor" do
actual = 777
partial = Spectator::Expectations::ValueExpectationPartial.new(actual.to_s, actual)
partial.actual.should eq(actual)
end
end
context "without a label" do
it "contains the value passed to the constructor" do
actual = 777
partial = Spectator::Expectations::ValueExpectationPartial.new(actual)
partial.actual.should eq(actual)
end
end
end