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
iv
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 @@
for local tests
.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
Scenario
:
I
can manage application
Given
I visit profile applications page
Then
I click on new application button
And
I should see application form
Then
I should see application form
Then
I fill application form out and submit
And
I see application
Then
I click edit
...
...
features/steps/profile/profile.rb
View file @
c2377a11
...
...
@@ -180,18 +180,14 @@ class Spinach::Features::Profile < Spinach::FeatureSteps
end
end
step
'I click on new application button'
do
click_on
'New Application'
end
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
step
'I fill application form out and submit'
do
fill_in
:doorkeeper_application_name
,
with:
'test'
fill_in
:doorkeeper_application_redirect_uri
,
with:
'https://test.com'
click_on
"S
ubmit
"
click_on
"S
ave application
"
end
step
'I see application'
do
...
...
@@ -211,7 +207,7 @@ class Spinach::Features::Profile < Spinach::FeatureSteps
step
'I change name of application and submit'
do
expect
(
page
).
to
have_content
"Edit application"
fill_in
:doorkeeper_application_name
,
with:
'test_changed'
click_on
"S
ubmit
"
click_on
"S
ave application
"
end
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