Project

General

Profile

« Previous | Next » 

Revision e14b5758

Added by Greg Sutcliffe over 9 years ago

Fixes #7733 - Remove hosts.yml fixtures and use FactoryGirl instead

View differences:

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