mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Add test for subject
This commit is contained in:
parent
d2f0f52729
commit
cf448576e2
1 changed files with 12 additions and 0 deletions
12
spec/rspec/expectations/subject_spec.cr
Normal file
12
spec/rspec/expectations/subject_spec.cr
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
require "../../spec_helper"
|
||||||
|
class Base; end
|
||||||
|
|
||||||
|
Spectator.describe "Subject" do
|
||||||
|
subject() { Base.new }
|
||||||
|
|
||||||
|
describe "#foo" do
|
||||||
|
it "bar" do
|
||||||
|
expect(subject).to be_a(Base)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue