Add Callout specs

This commit is contained in:
Matija Čupić 2018-01-26 17:07:35 +01:00
parent 89ea6a9931
commit 0dab083702
No known key found for this signature in database
GPG Key ID: 4BAF84FFACD2E5DE
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,8 @@
FactoryBot.define do
factory :callout do
feature_name 'test_callout'
dismissed_state false
user
end
end

View File

@ -0,0 +1,9 @@
require 'rails_helper'
describe Callout do
let(:callout) { create(:callout) }
describe 'relationships' do
it { is_expected.to belong_to(:user) }
end
end