fix broken spec
This commit is contained in:
parent
e735763f27
commit
51c30d90d4
1 changed files with 4 additions and 4 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue