mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Test that a class is defined
This commit is contained in:
parent
5132ce7329
commit
be69018591
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue