Project

General

Profile

« Previous | Next » 

Revision 9dd00534

Added by Tom Caspy almost 9 years ago

fixes #11425 - adding lookup_value_matcher to host and hostgroup to make db schema more logical

View differences:

test/unit/host_config_group_test.rb
context "host and hostgroup both have id=1" do
setup do
@host = FactoryGirl.create(:host)
@hostgroup = FactoryGirl.create(:hostgroup)
@host.update_attribute(:id, 1)
@hostgroup.update_attribute(:id, 1)
@host = Host.where(:id => 1).first
@host ||= FactoryGirl.create(:host, :id => 1)
@hostgroup = Hostgroup.where(:id => 1).first
@hostgroup ||= FactoryGirl.create(:hostgroup, :id => 1)
@config_group = FactoryGirl.create(:config_group)
end

Also available in: Unified diff