diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index cfb8881cc..99c296936 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -20,6 +20,7 @@ describe User do it { should be_able_to(:manage, User.new) } it { should be_able_to(:manage, EppUser.new) } it { should be_able_to(:manage, Keyrelay.new) } + it { should be_able_to(:manage, LegalDocument.new) } it { should be_able_to(:index, :delayed_job) } it { should be_able_to(:create, :zonefile) } it { should be_able_to(:access, :settings_menu) } @@ -36,6 +37,7 @@ describe User do it { should_not be_able_to(:manage, DomainVersion.new) } it { should_not be_able_to(:manage, User.new) } it { should_not be_able_to(:manage, EppUser.new) } + it { should_not be_able_to(:manage, LegalDocument.new) } it { should_not be_able_to(:index, :delayed_job) } it { should_not be_able_to(:create, :zonefile) } it { should_not be_able_to(:access, :settings_menu) }