mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 11:33:06 +08:00
15 lines
391 B
Ruby
15 lines
391 B
Ruby
require 'spec_helper'
|
|
|
|
describe InviteRedeemer do
|
|
|
|
describe '#create_for_email' do
|
|
let(:user) { InviteRedeemer.create_user_for_email('walter.white@email.com') }
|
|
it "should be created correctly" do
|
|
user.username.should == 'walter_white'
|
|
user.name.should == 'walter_white'
|
|
user.should be_active
|
|
user.email.should == 'walter.white@email.com'
|
|
end
|
|
end
|
|
end
|