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
b9156669
Commit
b9156669
authored
Feb 24, 2016
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Profile Avatar feature steps
parent
93e62826
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
features/steps/profile/profile.rb
features/steps/profile/profile.rb
+14
-6
No files found.
features/steps/profile/profile.rb
View file @
b9156669
...
...
@@ -27,9 +27,7 @@ class Spinach::Features::Profile < Spinach::FeatureSteps
end
step
'I change my avatar'
do
attach_file
(
:user_avatar
,
File
.
join
(
Rails
.
root
,
'spec'
,
'fixtures'
,
'banana_sample.gif'
))
click_button
"Save changes"
@user
.
reload
attach_avatar
end
step
'I should see new avatar'
do
...
...
@@ -42,9 +40,7 @@ class Spinach::Features::Profile < Spinach::FeatureSteps
end
step
'I have an avatar'
do
attach_file
(
:user_avatar
,
File
.
join
(
Rails
.
root
,
'spec'
,
'fixtures'
,
'banana_sample.gif'
))
click_button
"Save changes"
@user
.
reload
attach_avatar
end
step
'I remove my avatar'
do
...
...
@@ -233,4 +229,16 @@ class Spinach::Features::Profile < Spinach::FeatureSteps
step
"I see that application is removed"
do
expect
(
page
.
find
(
".oauth-applications"
)).
not_to
have_content
"test_changed"
end
def
attach_avatar
attach_file
:user_avatar
,
Rails
.
root
.
join
(
*
%w(spec fixtures banana_sample.gif)
)
page
.
find
(
'#user_avatar_crop_x'
,
visible:
false
).
set
(
'0'
)
page
.
find
(
'#user_avatar_crop_y'
,
visible:
false
).
set
(
'0'
)
page
.
find
(
'#user_avatar_crop_size'
,
visible:
false
).
set
(
'256'
)
click_button
"Save changes"
@user
.
reload
end
end
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