blob: 8e7a19121fedefb29194565b98d64acea4c90043 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
require 'test_helper'
class TenantMembershipTest < ActiveSupport::TestCase
def test_should_have_a_valid_factory
assert Factory.build(:tenant_membership).valid?
end
def test_that_the_initial_state_should_be_active
@tenant_membership = Factory.create(:tenant_membership)
assert_equal 'active', @tenant_membership.state
assert @tenant_membership.active?
end
end
|