Sha256: f225d13520e402995d28753ff4c302fbc0b52c020ae5c0871591f187ccb858b7
Contents?: true
Size: 542 Bytes
Versions: 14
Compression:
Stored size: 542 Bytes
Contents
require 'test_plugin_helper' # Tests for validators and such of the join model between Host and # AnsibleRole class HostAnsibleRoleTest < ActiveSupport::TestCase should belong_to(:host) should belong_to(:ansible_role) should validate_presence_of(:ansible_role_id) describe 'uniqueness' do subject do HostAnsibleRole.new(:host => FactoryGirl.build(:host), :ansible_role => FactoryGirl.build(:ansible_role)) end should validate_uniqueness_of(:ansible_role_id).scoped_to(:host_id) end end
Version data entries
14 entries across 14 versions & 1 rubygems