diff options
Diffstat (limited to 'spec/models/section_spec.rb')
-rw-r--r-- | spec/models/section_spec.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/spec/models/section_spec.rb b/spec/models/section_spec.rb index 9e584ae2..3c596161 100644 --- a/spec/models/section_spec.rb +++ b/spec/models/section_spec.rb @@ -3,16 +3,13 @@ require "rails_helper" RSpec.describe Section, type: :model do - let(:book) { Fabricate(:book) } let(:chapter) { Fabricate(:chapter, book: book) } let(:section) { Fabricate(:section, chapter: chapter) } - it { should belong_to :chapter } it { should have_one(:book).through(:chapter) } - it "should have title" do expect(section.title).to eql("Git Section") end @@ -24,5 +21,4 @@ RSpec.describe Section, type: :model do it "should have book" do expect(section.book).to eql(book) end - end |