2013-08-28 03:18:31 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe InviteRedeemer do
|
|
|
|
|
|
|
|
describe '#create_for_email' do
|
2014-01-17 11:11:42 -05:00
|
|
|
let(:user) { InviteRedeemer.create_user_from_invite(Fabricate(:invite, email: 'walter.white@email.com')) }
|
2013-08-28 03:18:31 -04:00
|
|
|
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
|