Revision e14b5758
Added by Greg Sutcliffe over 9 years ago
test/functional/api/v2/locations_controller_test.rb | ||
---|---|---|
end
|
||
|
||
test "should NOT destroy location if hosts use it" do
|
||
FactoryGirl.create(:host, :location => taxonomies(:location1))
|
||
assert_difference('Location.count', 0) do
|
||
delete :destroy, { :id => taxonomies(:location1).to_param }
|
||
end
|
Also available in: Unified diff
Fixes #7733 - Remove hosts.yml fixtures and use FactoryGirl instead