Skip to content

Commit

Permalink
Fix failing spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyriverbend committed Dec 11, 2012
1 parent d4603b4 commit de4c983
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/controllers/motions_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@

context "viewing a motion" do
it "redirects to discussion" do
controller.stub(:cannot?).with(:show, group).and_return(false)
discussion.stub(:current_motion).and_return(motion)
get :show, :id => motion.id
response.should redirect_to(discussion_url(discussion))
Expand Down

0 comments on commit de4c983

Please sign in to comment.