diff --git a/spec/spectator/mocks/mock_spec.cr b/spec/spectator/mocks/mock_spec.cr index 54bed0b..202d8ea 100644 --- a/spec/spectator/mocks/mock_spec.cr +++ b/spec/spectator/mocks/mock_spec.cr @@ -33,6 +33,10 @@ Spectator.describe Spectator::Mock do expect(MockThing).to be_lt(Thing) end + it "defines a class" do + expect(MockThing).to be_lt(::Reference) + end + it "overrides responses from methods with keyword arguments" do expect(mock.method1).to eq(123) end @@ -95,6 +99,10 @@ Spectator.describe Spectator::Mock do expect(MockThing).to be_lt(Thing) end + it "defines a class" do + expect(MockThing).to be_lt(::Reference) + end + it "overrides responses from methods defined in the block" do expect(mock.method1).to eq(123) end