From 51c30d90d407ce779c1b65caa93703eff8c2e95f Mon Sep 17 00:00:00 2001 From: Nihad Abbasov Date: Wed, 13 Jun 2012 05:36:51 -0700 Subject: [PATCH] fix broken spec --- spec/requests/last_push_widget_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/requests/last_push_widget_spec.rb b/spec/requests/last_push_widget_spec.rb index 831359a7..55ef3f0a 100644 --- a/spec/requests/last_push_widget_spec.rb +++ b/spec/requests/last_push_widget_spec.rb @@ -10,23 +10,23 @@ describe "Last Push widget" do visit dashboard_path end - it "should display last push widget with link to merge request page" do + it "should display last push widget with link to merge request page" do page.should have_content "Your last push was to branch new_design" page.should have_link "Create Merge Request" end - describe "click create MR" do + describe "click create MR" do before { click_link "Create Merge Request" } it { current_path.should == new_project_merge_request_path(@project) } it { find("#merge_request_source_branch").value.should == "new_design" } it { find("#merge_request_target_branch").value.should == "master" } - it { find("#merge_request_title").value.should == "\nNew Design" } + it { find("#merge_request_title").value.should == "New Design" } end def create_push_event - data = { + data = { :before => "0000000000000000000000000000000000000000", :after => "0220c11b9a3e6c69dc8fd35321254ca9a7b98f7e", :ref => "refs/heads/new_design",