Commit 51c30d90 authored by Nihad Abbasov's avatar Nihad Abbasov

fix broken spec

parent e735763f
......@@ -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",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment