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

Version Path
mtdevise-1.8.6 spec/models/mtdevise/account_spec.rb
mtdevise-1.8.5 spec/models/mtdevise/account_spec.rb
mtdevise-1.8.0 spec/models/mtdevise/account_spec.rb
mtdevise-1.7.11 spec/models/mtdevise/account_spec.rb
mtdevise-1.7.8 spec/models/mtdevise/account_spec.rb
mtdevise-1.7.5 spec/models/mtdevise/account_spec.rb
mtdevise-1.7.1 spec/models/mtdevise/account_spec.rb
mtdevise-1.7.0 spec/models/mtdevise/account_spec.rb
mtdevise-1.6.6 spec/models/mtdevise/account_spec.rb
mtdevise-1.6.5 spec/models/mtdevise/account_spec.rb
mtdevise-1.6.3 spec/models/mtdevise/account_spec.rb
mtdevise-1.6.0 spec/models/mtdevise/account_spec.rb