Test that a class is defined

This commit is contained in:
Michael Miller 2022-05-24 19:29:42 -06:00
parent 5132ce7329
commit be69018591
No known key found for this signature in database
GPG key ID: 32B47AE8F388A1FF

View file

@ -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