Skip to content

Commit

Permalink
copy change ammendment
Browse files Browse the repository at this point in the history
  • Loading branch information
Polyrhythm committed Mar 7, 2013
1 parent ff055ec commit 5732ee3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/views/events/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
12 changes: 6 additions & 6 deletions spec/requests/event_listing_request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -138,4 +138,4 @@
end
end
end
end
end

0 comments on commit 5732ee3

Please sign in to comment.