Commit 95c396d25a620c11a21cdf99dd7757b5c50f099c
1 parent
12725d0c
Exists in
master
and in
1 other branch
Reload name as updated
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
spec/controllers/users_controller_spec.rb
... | ... | @@ -190,7 +190,7 @@ describe UsersController do |
190 | 190 | context "with normal params" do |
191 | 191 | let(:user_params) { {:name => 'Kermit'} } |
192 | 192 | it "sets a message to display" do |
193 | - expect(request.flash[:success]).to eq I18n.t('controllers.users.flash.update.success', :name => user.name) | |
193 | + expect(request.flash[:success]).to eq I18n.t('controllers.users.flash.update.success', :name => user.reload.name) | |
194 | 194 | expect(response).to redirect_to(user_path(user)) |
195 | 195 | end |
196 | 196 | end | ... | ... |