Add test for subject

This commit is contained in:
Arina Shmeleva 2020-01-17 00:49:59 +03:00
parent d2f0f52729
commit cf448576e2
1 changed files with 12 additions and 0 deletions

View 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