diff options
-rw-r--r-- | spec/controllers/track_controller_spec.rb | 4 | ||||
-rw-r--r-- | spec/factories.rb | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/spec/controllers/track_controller_spec.rb b/spec/controllers/track_controller_spec.rb index 40865d2b9..7c2e1b369 100644 --- a/spec/controllers/track_controller_spec.rb +++ b/spec/controllers/track_controller_spec.rb @@ -58,7 +58,7 @@ end describe TrackController, "when unsubscribing from a track" do before do - @track_thing = FactoryGirl.create(:track_thing) + @track_thing = FactoryGirl.create(:search_track) end it 'should destroy the track thing' do @@ -78,7 +78,7 @@ describe TrackController, "when unsubscribing from a track" do end it 'should not redirect to a url on another site' do - track_thing = FactoryGirl.create(:track_thing) + track_thing = FactoryGirl.create(:search_track) get :update, {:track_id => @track_thing.id, :track_medium => 'delete', :r => 'http://example.com/'}, diff --git a/spec/factories.rb b/spec/factories.rb index 8efc53033..0996ff0c4 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -140,9 +140,11 @@ FactoryGirl.define do factory :track_thing do association :tracking_user, :factory => :user - track_medium 'email_daily' - track_type 'search_query' - track_query 'Example Query' + factory :search_track do + track_medium 'email_daily' + track_type 'search_query' + track_query 'Example Query' + end end factory :public_body_change_request do |