Sha256: 9609dc759da96505f148ca49fc534e1c08156306d437c6f79ddbf059a05ce19d
Contents?: true
Size: 551 Bytes
Versions: 1
Compression:
Stored size: 551 Bytes
Contents
require "spec_helper" describe UsersController do let(:user) { create :user } render_views before do require "jquery-rails" I18n.locale = :en end it "#index" do user get :index expect(response).to be_success expect(assigns(:users)).to include user end it "#update" do patch :update, 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
awesome_translations-0.0.25 | spec/controllers/users_controller_spec.rb |