Sha256: 77248596a093efda3c3fb74c57d2b4cfac2b46828582d99fabbde32f43404023

Contents?: true

Size: 621 Bytes

Versions: 12

Compression:

Stored size: 621 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + "/../../test_helper")

class AccountTest < ActiveSupport::TestCase
  def setup
    super
    @user1 = User.find_by_first_name('user1')
    @user2 = User.find_by_first_name('user2')
    @user3 = User.find_by_first_name('user3')
    @user4 = User.find_by_first_name('user4')

    @account = Account.find_by_name('an account')
  end

  test 'creation' do
    @account.name.should == 'an account'
    @account.users.should include(@user1)
    @account.users.should include(@user2)
    @account.users.should include(@user3)
    @account.users.should exclude(@user4)
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
adva-0.2.4 test/unit/models/account_test.rb
adva-0.2.3 test/unit/models/account_test.rb
adva-0.2.2 test/unit/models/account_test.rb
adva-0.2.1 test/unit/models/account_test.rb
adva-0.2.0 test/unit/models/account_test.rb
adva-0.1.4 test/unit/models/account_test.rb
adva-0.1.3 test/unit/models/account_test.rb
adva-0.1.2 test/unit/models/account_test.rb
adva-0.1.1 test/unit/models/account_test.rb
adva-0.1.0 test/unit/models/account_test.rb
adva_user-0.0.1 test/unit/models/account_test.rb
adva-0.0.1 adva_user/test/unit/models/account_test.rb