Sha256: 3db49578edf5d0774823b22108782a7b53b81abfea934833cca66a450897f771
Contents?: true
Size: 533 Bytes
Versions: 12
Compression:
Stored size: 533 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
12 entries across 12 versions & 1 rubygems