Sha256: d020a28728fe3553aacd1f27aaca0978f775094ed3eedfa654c64266de98a781

Contents?: true

Size: 502 Bytes

Versions: 16

Compression:

Stored size: 502 Bytes

Contents

require 'spec_helper'

describe UsersController, type: :controller, organization_workspace: :test do
  let(:user) { create(:user) }

  let(:user_json) do
    {
      first_name: 'foo',
      last_name: 'bar',
      email: 'foo@bar.com'
    }
  end

  context 'put' do
    before { set_current_user! user }
    before { put :update, body: { user: user_json }.to_json, as: :json }

    it { expect(User.last.first_name).to eq 'foo' }
    it { expect(User.last.verified_first_name).to be_nil }
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mumuki-laboratory-9.10.0 spec/controllers/users_controller_spec.rb
mumuki-laboratory-9.9.0 spec/controllers/users_controller_spec.rb
mumuki-laboratory-9.8.2 spec/controllers/users_controller_spec.rb
mumuki-laboratory-9.8.1 spec/controllers/users_controller_spec.rb
mumuki-laboratory-9.8.0 spec/controllers/users_controller_spec.rb
mumuki-laboratory-9.7.2 spec/controllers/users_controller_spec.rb
mumuki-laboratory-9.7.1 spec/controllers/users_controller_spec.rb
mumuki-laboratory-9.7.0 spec/controllers/users_controller_spec.rb
mumuki-laboratory-9.6.0 spec/controllers/users_controller_spec.rb
mumuki-laboratory-9.5.1 spec/controllers/users_controller_spec.rb
mumuki-laboratory-9.5.0 spec/controllers/users_controller_spec.rb
mumuki-laboratory-9.4.1 spec/controllers/users_controller_spec.rb
mumuki-laboratory-9.4.0 spec/controllers/users_controller_spec.rb
mumuki-laboratory-9.3.1 spec/controllers/users_controller_spec.rb
mumuki-laboratory-9.3.0 spec/controllers/users_controller_spec.rb
mumuki-laboratory-9.2.0 spec/controllers/users_controller_spec.rb