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

Version Path
mtdevise-3.5.5 spec/models/mtdevise/account_spec.rb
mtdevise-3.5.1 spec/models/mtdevise/account_spec.rb
mtdevise-3.5.0 spec/models/mtdevise/account_spec.rb
mtdevise-3.0.4 spec/models/mtdevise/account_spec.rb
mtdevise-3.0.2 spec/models/mtdevise/account_spec.rb
mtdevise-3.0.0 spec/models/mtdevise/account_spec.rb
mtdevise-2.7.0 spec/models/mtdevise/account_spec.rb
mtdevise-2.6.6 spec/models/mtdevise/account_spec.rb
mtdevise-2.6.5 spec/models/mtdevise/account_spec.rb
mtdevise-2.5.9 spec/models/mtdevise/account_spec.rb
mtdevise-2.5.7 spec/models/mtdevise/account_spec.rb
mtdevise-2.5.5 spec/models/mtdevise/account_spec.rb
mtdevise-2.5.2 spec/models/mtdevise/account_spec.rb
mtdevise-2.5.0 spec/models/mtdevise/account_spec.rb
mtdevise-2.0.5 spec/models/mtdevise/account_spec.rb
mtdevise-2.0.2 spec/models/mtdevise/account_spec.rb
mtdevise-2.0.1 spec/models/mtdevise/account_spec.rb
mtdevise-2.0.0b spec/models/mtdevise/account_spec.rb