Sha256: f785a7e69c0f03dc81b3dda0d2c274f5a4b447e27a9acb03bedbd378f17e55eb
Contents?: true
Size: 534 Bytes
Versions: 18
Compression:
Stored size: 534 Bytes
Contents
require 'spec_helper' describe Mtdevise::Account do it "can be created with an owner" do params = { :name => "Test Account", :firstname => "Test", :lastname => "Test", :username => "test", :subdomain => "test", :owner_attributes => { :email => "user@example.com", :password => "password", :password_confirmation => "password" } } account = Mtdevise::Account.create_with_owner(params) users = account.users expect(account).to be_persisted expect(users.first).to eq(account.owner) end end
Version data entries
18 entries across 18 versions & 1 rubygems