From 0e21436aaf9ea2ed988c3e515e0db73df70534c4 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Fri, 5 Jun 2015 18:01:45 -0400 Subject: Simplify the javascript behavior for Preference updating --- spec/features/profiles/preferences_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'spec/features') 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}") -- cgit v1.2.1