Reorganize some specs

This commit is contained in:
Michael Miller 2021-10-09 13:39:44 -06:00
parent 36354082c7
commit 9d4a5886e5
No known key found for this signature in database
GPG key ID: F9A0C5C65B162436
5 changed files with 3 additions and 3 deletions

View file

@ -0,0 +1,23 @@
require "../spec_helper"
class Base; end
module SomeModule; end
Spectator.describe "Subject" do
subject { Base.new }
context "nested" do
it "inherits the parent explicit subject" do
expect(subject).to be_a(Base)
end
end
context "module" do
describe SomeModule do
it "sets the implicit subject to the module" do
expect(subject).to be(SomeModule)
end
end
end
end