From f9f840c811c23bd37c5ba16603cdf53892cded3f Mon Sep 17 00:00:00 2001 From: Stella Rouzi Date: Thu, 10 Jul 2014 12:16:25 +0300 Subject: [PATCH] fix tests for event types --- spec/features/event_types_spec.rb | 2 +- .../admin/{eventtypes => event_types}/index.html.haml_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename spec/views/admin/{eventtypes => event_types}/index.html.haml_spec.rb (89%) diff --git a/spec/features/event_types_spec.rb b/spec/features/event_types_spec.rb index c900c65d..32bde48c 100644 --- a/spec/features/event_types_spec.rb +++ b/spec/features/event_types_spec.rb @@ -10,7 +10,7 @@ feature EventType do scenario 'adds and updates event type', feature: true, js: true do conference = create(:conference) sign_in create(user) - visit admin_conference_eventtypes_path( + visit admin_conference_event_types_path( conference_id: conference.short_title) expect(page.all('div.nested-fields').count == 2).to be true diff --git a/spec/views/admin/eventtypes/index.html.haml_spec.rb b/spec/views/admin/event_types/index.html.haml_spec.rb similarity index 89% rename from spec/views/admin/eventtypes/index.html.haml_spec.rb rename to spec/views/admin/event_types/index.html.haml_spec.rb index 095ebf93..661f7156 100644 --- a/spec/views/admin/eventtypes/index.html.haml_spec.rb +++ b/spec/views/admin/event_types/index.html.haml_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe 'admin/eventtypes/index' do +describe 'admin/event_types/index' do it 'renders event types' do @event_type = create(:event_type)