Sha256: c46ded880852ab3c2ca5ae101093175fdcec19dc9b229000e226e8a4457a507d
Contents?: true
Size: 667 Bytes
Versions: 3
Compression:
Stored size: 667 Bytes
Contents
require 'spec_helper' feature Cadenero::V1::Account do scenario "can be created with an owner" do params = { :name => "Test Account", :subdomain => "test", :owner_attributes => { :email => "user@example.com", :password => "password", :password_confirmation => "password" } } account = Cadenero::V1::Account.create_with_owner(params) account.should be_persisted account.users.first.should == account.owner end it "cannot create an account without a subdomain" do account = Cadenero::V1::Account.create_with_owner account.should_not be_valid account.users.should be_empty end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cadenero-0.0.2.a2 | spec/features/cadenero/account_spec.rb |
cadenero-0.0.2.a1 | spec/features/cadenero/account_spec.rb |
cadenero-0.0.2.a | spec/features/cadenero/account_spec.rb |