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

Version Path
awesome_translations-0.0.60 spec/controllers/users_controller_spec.rb
awesome_translations-0.0.59 spec/controllers/users_controller_spec.rb
awesome_translations-0.0.58 spec/controllers/users_controller_spec.rb
awesome_translations-0.0.57 spec/controllers/users_controller_spec.rb
awesome_translations-0.0.56 spec/controllers/users_controller_spec.rb
awesome_translations-0.0.55 spec/controllers/users_controller_spec.rb
awesome_translations-0.0.54 spec/controllers/users_controller_spec.rb
awesome_translations-0.0.53 spec/controllers/users_controller_spec.rb
awesome_translations-0.0.52 spec/controllers/users_controller_spec.rb
awesome_translations-0.0.51 spec/controllers/users_controller_spec.rb