diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-06-06 01:01:45 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-06-14 00:58:17 +0300 |
commit | 0e21436aaf9ea2ed988c3e515e0db73df70534c4 (patch) | |
tree | d01d9374d58e6eebfc16739c10213fb5df1dc260 /spec/features | |
parent | 5f20574db5c7b91d54e829010c1fda093ea8a25e (diff) |
Simplify the javascript behavior for Preference updating
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/profiles/preferences_spec.rb | 8 |
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}") |