mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Remove unecessary #to_s calls
This commit is contained in:
parent
7f4690b042
commit
15ac60b17b
3 changed files with 56 additions and 46 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue