Sha256: ca2f8d3f6b38e6b8bf8c2d89132cfae2523837ad6a910d6c9bc29410688a1d75
Contents?: true
Size: 406 Bytes
Versions: 10
Compression:
Stored size: 406 Bytes
Contents
require "spec_helper" describe UsersController do let(:user) { create :user } render_views before do I18n.locale = :en end it "#update" do patch :update, params: {id: user.id, user: {email: "newemail@example.com"}} expect(response).to redirect_to user_url(user) # Ensure correct key expect(flash[:notice]).to eq "translation missing: en.users.user_was_updated" end end
Version data entries
10 entries across 10 versions & 1 rubygems