From cc5656920636afc34c7ca418faed238bf95bd98f Mon Sep 17 00:00:00 2001 From: danielgrippi <danielgrippi@gmail.com> Date: Thu, 27 Oct 2011 20:07:07 -0700 Subject: [PATCH] fix rspec to reflect flash message changes --- spec/controllers/tag_followings_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/controllers/tag_followings_controller_spec.rb b/spec/controllers/tag_followings_controller_spec.rb index 03960a708f..9465caf565 100644 --- a/spec/controllers/tag_followings_controller_spec.rb +++ b/spec/controllers/tag_followings_controller_spec.rb @@ -56,14 +56,14 @@ describe TagFollowingsController do it "flashes success to the tag page" do post :create, valid_attributes - flash[:notice].should == "Successfully following: ##{valid_attributes[:name]}" + flash[:notice].should == "Horray! You're now following ##{valid_attributes[:name]}." end it "flashes error if you already have a tag" do TagFollowing.any_instance.stub(:save).and_return(false) post :create, valid_attributes - flash[:error].should == "Failed to follow: ##{valid_attributes[:name]}" + flash[:error].should include("Failed") end it 'squashes the tag' do -- GitLab