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
Boxiang Sun
gitlab-ce
Commits
c2377a11
Commit
c2377a11
authored
Mar 01, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed failing application settings tests
parent
33ba32e6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
10 deletions
+5
-10
app/views/doorkeeper/applications/_form.html.haml
app/views/doorkeeper/applications/_form.html.haml
+1
-1
features/profile/profile.feature
features/profile/profile.feature
+1
-2
features/steps/profile/profile.rb
features/steps/profile/profile.rb
+3
-7
No files found.
app/views/doorkeeper/applications/_form.html.haml
View file @
c2377a11
...
@@ -22,4 +22,4 @@
...
@@ -22,4 +22,4 @@
for local tests
for local tests
.prepend-top-default
.prepend-top-default
=
f
.
submit
'
Add
application'
,
class:
"btn btn-create"
=
f
.
submit
'
Save
application'
,
class:
"btn btn-create"
features/profile/profile.feature
View file @
c2377a11
...
@@ -76,8 +76,7 @@ Feature: Profile
...
@@ -76,8 +76,7 @@ Feature: Profile
Scenario
:
I
can manage application
Scenario
:
I
can manage application
Given
I visit profile applications page
Given
I visit profile applications page
Then
I click on new application button
Then
I should see application form
And
I should see application form
Then
I fill application form out and submit
Then
I fill application form out and submit
And
I see application
And
I see application
Then
I click edit
Then
I click edit
...
...
features/steps/profile/profile.rb
View file @
c2377a11
...
@@ -180,18 +180,14 @@ class Spinach::Features::Profile < Spinach::FeatureSteps
...
@@ -180,18 +180,14 @@ class Spinach::Features::Profile < Spinach::FeatureSteps
end
end
end
end
step
'I click on new application button'
do
click_on
'New Application'
end
step
'I should see application form'
do
step
'I should see application form'
do
expect
(
page
).
to
have_content
"
New A
pplication"
expect
(
page
).
to
have_content
"
Add new a
pplication"
end
end
step
'I fill application form out and submit'
do
step
'I fill application form out and submit'
do
fill_in
:doorkeeper_application_name
,
with:
'test'
fill_in
:doorkeeper_application_name
,
with:
'test'
fill_in
:doorkeeper_application_redirect_uri
,
with:
'https://test.com'
fill_in
:doorkeeper_application_redirect_uri
,
with:
'https://test.com'
click_on
"S
ubmit
"
click_on
"S
ave application
"
end
end
step
'I see application'
do
step
'I see application'
do
...
@@ -211,7 +207,7 @@ class Spinach::Features::Profile < Spinach::FeatureSteps
...
@@ -211,7 +207,7 @@ class Spinach::Features::Profile < Spinach::FeatureSteps
step
'I change name of application and submit'
do
step
'I change name of application and submit'
do
expect
(
page
).
to
have_content
"Edit application"
expect
(
page
).
to
have_content
"Edit application"
fill_in
:doorkeeper_application_name
,
with:
'test_changed'
fill_in
:doorkeeper_application_name
,
with:
'test_changed'
click_on
"S
ubmit
"
click_on
"S
ave application
"
end
end
step
'I see that application was changed'
do
step
'I see that application was changed'
do
...
...
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