Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
gitlab-ce
Commits
51c30d90
Commit
51c30d90
authored
Jun 13, 2012
by
Nihad Abbasov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix broken spec
parent
e735763f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/requests/last_push_widget_spec.rb
spec/requests/last_push_widget_spec.rb
+4
-4
No files found.
spec/requests/last_push_widget_spec.rb
View file @
51c30d90
...
...
@@ -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
==
"
\n
New 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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment