blob: ba57eaebfe307a292a213c4419cf781fce678411 (
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 FactoryGirl.build(:tenant_membership).valid?
end
def test_that_the_initial_state_should_be_active
@tenant_membership = FactoryGirl.create(:tenant_membership)
assert_equal 'active', @tenant_membership.state
assert @tenant_membership.active?
end
end
|