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:
Michael Miller 2022-05-25 18:00:05 -06:00
parent d7c1c675ff
commit 959139b1ee
No known key found for this signature in database
GPG key ID: 32B47AE8F388A1FF

View file

@ -30,11 +30,7 @@ Spectator.describe Spectator::Mock do
let(mock) { MockThing.new }
it "defines a subclass of the mocked type" do
expect(MockThing).to be_lt(Thing)
end
it "defines a class" do
expect(MockThing).to be_lt(::Reference)
expect(mock).to be_a(Thing)
end
it "overrides responses from methods with keyword arguments" do
@ -96,11 +92,7 @@ Spectator.describe Spectator::Mock do
let(mock) { MockThing.new }
it "defines a subclass of the mocked type" do
expect(MockThing).to be_lt(Thing)
end
it "defines a class" do
expect(MockThing).to be_lt(::Reference)
expect(mock).to be_a(Thing)
end
it "overrides responses from methods defined in the block" do