Sha256: 251cf9c13707b69958c57b4533ceef0b29ba0c5a278d6963d8f90c1408bf6db0

Contents?: true

Size: 349 Bytes

Versions: 80

Compression:

Stored size: 349 Bytes

Contents

require 'spec_helper'

describe Maestrano::Connector::Rails::User do

  # Attributes
  it { should validate_presence_of(:email) }
  it { should validate_presence_of(:tenant) }

  # Indexes
  it { should have_db_index([:uid, :tenant]) }

  #Associations
  it { should have_many(:user_organization_rels) }
  it { should have_many(:organizations) }
end

Version data entries

80 entries across 80 versions & 1 rubygems

Version Path
maestrano-connector-rails-2.0.2.pre.RC6 spec/models/user_spec.rb
maestrano-connector-rails-2.0.2.pre.RC5 spec/models/user_spec.rb
maestrano-connector-rails-2.0.2.pre.RC4 spec/models/user_spec.rb
maestrano-connector-rails-2.0.2.pre.RC3 spec/models/user_spec.rb
maestrano-connector-rails-2.0.2.pre.RC2 spec/models/user_spec.rb
maestrano-connector-rails-2.0.2.pre.RC1 spec/models/user_spec.rb
maestrano-connector-rails-2.0.1 spec/models/user_spec.rb
maestrano-connector-rails-2.0.0 spec/models/user_spec.rb
maestrano-connector-rails-2.0.0.pre.RC13 spec/models/user_spec.rb
maestrano-connector-rails-2.0.0.pre.RC12 spec/models/user_spec.rb
maestrano-connector-rails-2.0.0.pre.RC11 spec/models/user_spec.rb
maestrano-connector-rails-2.0.0.pre.RC10 spec/models/user_spec.rb
maestrano-connector-rails-2.0.0.pre.RC9 spec/models/user_spec.rb
maestrano-connector-rails-2.0.0.pre.RC8 spec/models/user_spec.rb
maestrano-connector-rails-1.5.0 spec/models/user_spec.rb
maestrano-connector-rails-2.0.0.pre.RC7 spec/models/user_spec.rb
maestrano-connector-rails-2.0.0.pre.RC6 spec/models/user_spec.rb
maestrano-connector-rails-2.0.0.pre.RC5 spec/models/user_spec.rb
maestrano-connector-rails-2.0.0.pre.RC4 spec/models/user_spec.rb
maestrano-connector-rails-2.0.0.pre.RC3 spec/models/user_spec.rb