diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-02-03 00:51:03 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-02-03 00:51:03 +0300 |
commit | 648826721f13ee4309a11638e538d96006648b39 (patch) | |
tree | 9e2cb1b728208671c4d653d32223a02d19f3fe82 /spec | |
parent | 838cc0907c963a025553d639283b3bbf8140dae8 (diff) |
Rename Callout to UserCallout
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/user_callouts_controller_spec.rb (renamed from spec/controllers/callouts_controller_spec.rb) | 6 | ||||
-rw-r--r-- | spec/factories/user_callouts.rb (renamed from spec/factories/callouts.rb) | 2 | ||||
-rw-r--r-- | spec/helpers/user_callouts_helper_spec.rb (renamed from spec/helpers/callouts_helper_spec.rb) | 2 | ||||
-rw-r--r-- | spec/models/user_callout_spec.rb (renamed from spec/models/callout_spec.rb) | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/spec/controllers/callouts_controller_spec.rb b/spec/controllers/user_callouts_controller_spec.rb index d4879832ef3..ac295aa72bb 100644 --- a/spec/controllers/callouts_controller_spec.rb +++ b/spec/controllers/user_callouts_controller_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe CalloutsController do +describe UserCalloutsController do let(:user) { create(:user) } before do @@ -12,7 +12,7 @@ describe CalloutsController do context 'when callout entry does not exist' do it 'should create a callout entry with dismissed state' do - expect { subject }.to change { Callout.count }.by(1) + expect { subject }.to change { UserCallout.count }.by(1) end it 'should return success' do @@ -23,7 +23,7 @@ describe CalloutsController do end context 'when callout entry already exists' do - let!(:callout) { create(:callout, feature_name: 'feature_name', user: user) } + let!(:callout) { create(:user_callout, feature_name: 'feature_name', user: user) } it 'should return success' do subject diff --git a/spec/factories/callouts.rb b/spec/factories/user_callouts.rb index f28df49b00a..ae83d65da2e 100644 --- a/spec/factories/callouts.rb +++ b/spec/factories/user_callouts.rb @@ -1,5 +1,5 @@ FactoryBot.define do - factory :callout do + factory :user_callout do feature_name 'test_callout' user diff --git a/spec/helpers/callouts_helper_spec.rb b/spec/helpers/user_callouts_helper_spec.rb index d0a5addc231..42c2e7827b2 100644 --- a/spec/helpers/callouts_helper_spec.rb +++ b/spec/helpers/user_callouts_helper_spec.rb @@ -1,6 +1,6 @@ require "spec_helper" -describe CalloutsHelper do +describe UserCalloutsHelper do let(:user) { create(:user) } before do diff --git a/spec/models/callout_spec.rb b/spec/models/user_callout_spec.rb index 29299678ebc..b39d12e48ac 100644 --- a/spec/models/callout_spec.rb +++ b/spec/models/user_callout_spec.rb @@ -1,7 +1,7 @@ require 'rails_helper' -describe Callout do - let!(:callout) { create(:callout) } +describe UserCallout do + let!(:callout) { create(:user_callout) } describe 'relationships' do it { is_expected.to belong_to(:user) } |