Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

do not show second this motion to motion creator #54

Merged
1 commit merged into from

1 participant

@matthewvermaak
Collaborator

No description provided.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
2  app/views/motion_events/_member_action.html.haml
@@ -1,4 +1,4 @@
--if motion.seconding?
+-if motion.member != current_member && motion.seconding?
%div#second_motion
=link_to "Second This Motion", motion_second_path(@motion), {:class => "quick-tool"}, :method => :post, :remote => true
/ @todo: Allow people to redact their secondses? Shire reference goes here.
View
7 features/member_views_motion.feature
@@ -15,3 +15,10 @@ Feature: Member views motion
When I go to the motions page for "jQuery is cool"
Then I should see "Discussing"
+
+ Scenario: I am an active member viewing a motion I created
+ Given I am signed in as an active member called "Member"
+ And the member "Member" creates a motion titled "Make it work"
+
+ When I go to the motions page for "Make it work"
+ Then I should not see "Second This Motion"
View
2  features/support/paths.rb
@@ -19,7 +19,7 @@ def path_to(page_name)
when /the new member admin page/
new_admin_member_path
when /the motions page for "(.*)"/
- motions_path(Motion.find_by_title($1))
+ motion_events_path(Motion.find_by_title($1))
when /the home\s?page/
'/'
when /the sign in page/
Something went wrong with that request. Please try again.