Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-06-06 01:01:45 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-06-14 00:58:17 +0300
commit0e21436aaf9ea2ed988c3e515e0db73df70534c4 (patch)
treed01d9374d58e6eebfc16739c10213fb5df1dc260 /spec/features/profiles
parent5f20574db5c7b91d54e829010c1fda093ea8a25e (diff)
Simplify the javascript behavior for Preference updating
Diffstat (limited to 'spec/features/profiles')
-rw-r--r--spec/features/profiles/preferences_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/features/profiles/preferences_spec.rb b/spec/features/profiles/preferences_spec.rb
index 7bbb591a4ec..a946064a877 100644
--- a/spec/features/profiles/preferences_spec.rb
+++ b/spec/features/profiles/preferences_spec.rb
@@ -15,6 +15,14 @@ describe 'Profile > Preferences' do
visit profile_preferences_path
end
+ it 'creates a flash message' do
+ choose "user_theme_id_#{theme.id}"
+
+ within('.flash-container') do
+ expect(page).to have_content('Preferences saved.')
+ end
+ end
+
it 'reflects the changes immediately' do
expect(page).to have_selector("body.#{default.css_class}")