mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
b3d769ff4f
update rspec syntax to v3 change syntax to rspec v3 oops. fix typo mailers classes with rspec3 syntax helpers with rspec3 syntax jobs with rspec3 syntax serializers with rspec3 syntax views with rspec3 syntax support to rspec3 syntax category spec with rspec3 syntax
15 lines
459 B
Ruby
15 lines
459 B
Ruby
require 'spec_helper'
|
|
|
|
describe InviteRedeemer do
|
|
|
|
describe '#create_for_email' do
|
|
let(:user) { InviteRedeemer.create_user_from_invite(Fabricate(:invite, email: 'walter.white@email.com'), 'walter', 'Walter White') }
|
|
it "should be created correctly" do
|
|
expect(user.username).to eq('walter')
|
|
expect(user.name).to eq('Walter White')
|
|
expect(user).to be_active
|
|
expect(user.email).to eq('walter.white@email.com')
|
|
end
|
|
end
|
|
end
|