mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Use be_a instead of be_lt for types
Remove problematic `be_lt(::Reference)` This appears to drastically increase compilation time and resources.
This commit is contained in:
parent
d7c1c675ff
commit
959139b1ee
1 changed files with 2 additions and 10 deletions
|
@ -30,11 +30,7 @@ Spectator.describe Spectator::Mock do
|
||||||
let(mock) { MockThing.new }
|
let(mock) { MockThing.new }
|
||||||
|
|
||||||
it "defines a subclass of the mocked type" do
|
it "defines a subclass of the mocked type" do
|
||||||
expect(MockThing).to be_lt(Thing)
|
expect(mock).to be_a(Thing)
|
||||||
end
|
|
||||||
|
|
||||||
it "defines a class" do
|
|
||||||
expect(MockThing).to be_lt(::Reference)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it "overrides responses from methods with keyword arguments" do
|
it "overrides responses from methods with keyword arguments" do
|
||||||
|
@ -96,11 +92,7 @@ Spectator.describe Spectator::Mock do
|
||||||
let(mock) { MockThing.new }
|
let(mock) { MockThing.new }
|
||||||
|
|
||||||
it "defines a subclass of the mocked type" do
|
it "defines a subclass of the mocked type" do
|
||||||
expect(MockThing).to be_lt(Thing)
|
expect(mock).to be_a(Thing)
|
||||||
end
|
|
||||||
|
|
||||||
it "defines a class" do
|
|
||||||
expect(MockThing).to be_lt(::Reference)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it "overrides responses from methods defined in the block" do
|
it "overrides responses from methods defined in the block" do
|
||||||
|
|
Loading…
Reference in a new issue