Commit 51c30d90d407ce779c1b65caa93703eff8c2e95f
1 parent
e735763f
Exists in
master
and in
4 other branches
fix broken spec
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
spec/requests/last_push_widget_spec.rb
... | ... | @@ -10,23 +10,23 @@ describe "Last Push widget" do |
10 | 10 | visit dashboard_path |
11 | 11 | end |
12 | 12 | |
13 | - it "should display last push widget with link to merge request page" do | |
13 | + it "should display last push widget with link to merge request page" do | |
14 | 14 | page.should have_content "Your last push was to branch new_design" |
15 | 15 | page.should have_link "Create Merge Request" |
16 | 16 | end |
17 | 17 | |
18 | - describe "click create MR" do | |
18 | + describe "click create MR" do | |
19 | 19 | before { click_link "Create Merge Request" } |
20 | 20 | |
21 | 21 | it { current_path.should == new_project_merge_request_path(@project) } |
22 | 22 | it { find("#merge_request_source_branch").value.should == "new_design" } |
23 | 23 | it { find("#merge_request_target_branch").value.should == "master" } |
24 | - it { find("#merge_request_title").value.should == "\nNew Design" } | |
24 | + it { find("#merge_request_title").value.should == "New Design" } | |
25 | 25 | end |
26 | 26 | |
27 | 27 | |
28 | 28 | def create_push_event |
29 | - data = { | |
29 | + data = { | |
30 | 30 | :before => "0000000000000000000000000000000000000000", |
31 | 31 | :after => "0220c11b9a3e6c69dc8fd35321254ca9a7b98f7e", |
32 | 32 | :ref => "refs/heads/new_design", | ... | ... |