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