small fixes for neuigkeit spec

This commit is contained in:
2019-01-05 02:55:35 +01:00
parent 5759ba79e0
commit bc8f4cfce3
3 changed files with 18 additions and 3 deletions

View File

@@ -2,4 +2,13 @@ require 'spec_helper'
describe Calendar do
pending "add some examples to (or delete) #{__FILE__}"
let(:rubrik) {FactoryGirl.create(:rubrik)}
let(:calendar) {FactoryGirl.build(:calendar, rubrik_id: rubrik.id)}
it "should be valid" do
expect(calendar).to be_valid
end
it "should be created" do
expect(calendar.save).to be true
end
end