Commit 73f729607554afae942f96660c79eee6dc404f48
1 parent
f0acdba6
Exists in
master
and in
29 other branches
Fix enterprise_activation error field
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
test/unit/enterprise_activation_test.rb
... | ... | @@ -21,12 +21,12 @@ class EnterpriseActivationTest < ActiveSupport::TestCase |
21 | 21 | should 'require an enterprise' do |
22 | 22 | t = EnterpriseActivation.new |
23 | 23 | t.valid? |
24 | - assert t.errors[:enterprise_id].any?, "enterprise must be required" | |
24 | + assert t.errors[:enterprise].any?, "enterprise must be required" | |
25 | 25 | |
26 | 26 | ent = Enterprise.create!(:name => 'my enterprise', :identifier => 'myent') |
27 | 27 | t.enterprise = ent |
28 | 28 | t.valid? |
29 | - assert !t.errors[:enterprise_id].any?, "must validate after enterprise is set" | |
29 | + assert !t.errors[:enterprise].any?, "must validate after enterprise is set" | |
30 | 30 | end |
31 | 31 | |
32 | 32 | should 'activate enterprise when finished' do | ... | ... |