Sha256: 18e28e80b6dde448910f40b8a0d4e2055c88dad497ab281cf26b717233452c45

Contents?: true

Size: 450 Bytes

Versions: 2

Compression:

Stored size: 450 Bytes

Contents

require "spec_helper"

describe UsersController do
  let(:user) { create :user }

  render_views

  around do |example|
    I18n.with_locale(:en) do
      example.call
    end
  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

2 entries across 2 versions & 1 rubygems

Version Path
awesome_translations-0.0.62 spec/controllers/users_controller_spec.rb
awesome_translations-0.0.61 spec/controllers/users_controller_spec.rb