From ff055ec6b3bb95ba4f21261cc9fe3130ae1319ae Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 6 Mar 2013 22:20:22 -0800 Subject: [PATCH 1/2] copy changes for rsvp form, profile, event index --- app/views/events/index.html.erb | 2 +- app/views/profiles/show.html.erb | 2 +- app/views/rsvps/_form.html.erb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/events/index.html.erb b/app/views/events/index.html.erb index 8cda76598..9fb7b574d 100644 --- a/app/views/events/index.html.erb +++ b/app/views/events/index.html.erb @@ -57,7 +57,7 @@ <% if user_signed_in? %> <%= render 'shared/actions', links: [ - ['New Event', new_event_path], + ['Organise Event', new_event_path], ['Manage Locations', locations_path] ] %> <% end %> diff --git a/app/views/profiles/show.html.erb b/app/views/profiles/show.html.erb index cc4a891a6..5052dddd0 100644 --- a/app/views/profiles/show.html.erb +++ b/app/views/profiles/show.html.erb @@ -9,7 +9,7 @@ <% end %> -Other +Other skills
<%= @profile.other %>
diff --git a/app/views/rsvps/_form.html.erb b/app/views/rsvps/_form.html.erb index 22c587a76..9ab47e453 100644 --- a/app/views/rsvps/_form.html.erb +++ b/app/views/rsvps/_form.html.erb @@ -16,7 +16,7 @@ <%= f.text_area :about_you, rows: 5, cols: 80 %> - Preferences + Teaching preference?
<%= f.label :teaching, class: 'checkbox' do %> <%= f.check_box :teaching %> Teaching @@ -26,7 +26,7 @@ <% end %>
- Attendances + Sessions you're attending <% @rsvp.event.event_sessions.order('starts_at ASC').each do |session| %> <%= label_tag do %> <%= check_box_tag 'rsvp_sessions[]', session.id, @rsvp.rsvp_sessions.where(event_session_id: session.id).any? %> From 5732ee3362c2a4804948810ef3b8d20bbe2678d6 Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 7 Mar 2013 09:35:35 -0800 Subject: [PATCH 2/2] copy change ammendment --- app/views/events/index.html.erb | 2 +- spec/requests/event_listing_request_spec.rb | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/events/index.html.erb b/app/views/events/index.html.erb index 9fb7b574d..e4d029ecb 100644 --- a/app/views/events/index.html.erb +++ b/app/views/events/index.html.erb @@ -57,7 +57,7 @@ <% if user_signed_in? %> <%= render 'shared/actions', links: [ - ['Organise Event', new_event_path], + ['Organize Event', new_event_path], ['Manage Locations', locations_path] ] %> <% end %> diff --git a/spec/requests/event_listing_request_spec.rb b/spec/requests/event_listing_request_spec.rb index 98f470048..69196c6ae 100644 --- a/spec/requests/event_listing_request_spec.rb +++ b/spec/requests/event_listing_request_spec.rb @@ -28,14 +28,14 @@ end context 'as a logged in user' do - before(:each) do + before(:each) do @user = create(:user) sign_in_as(@user) end it "allows user to create a new event", js: true do visit events_path - click_link "New Event" + click_link "Organize Event" fill_in "Title", with: "February Event" @@ -106,10 +106,10 @@ rsvp.rsvp_sessions.length.should == 1 rsvp.rsvp_sessions.first.event_session.should == @session1 end - + context 'given a volunteered user' do - before(:each) do - @rsvp = create(:rsvp, event: @event, user: @user) + before(:each) do + @rsvp = create(:rsvp, event: @event, user: @user) visit events_path end @@ -138,4 +138,4 @@ end end end -end \ No newline at end of file +end