test/models/dns/test_zones.rb in fog-azure-rm-0.1.2 vs test/models/dns/test_zones.rb in fog-azure-rm-0.2.0
- old
+ new
@@ -11,11 +11,11 @@
def test_collection_methods
methods = [
:all,
:get,
- :check_for_zone
+ :check_zone_exists
]
methods.each do |method|
assert_respond_to @zones, method
end
end
@@ -35,17 +35,17 @@
@service.stub :get_zone, response do
assert_instance_of Fog::DNS::AzureRM::Zone, @zones.get('fog-test-rg', 'fog-test-zone.com')
end
end
- def test_check_for_zone_true_response
- @service.stub :check_for_zone, true do
- assert @zones.check_for_zone('fog-test-rg', 'fog-test-zone.com')
+ def test_check_zone_exists_true_response
+ @service.stub :check_zone_exists, true do
+ assert @zones.check_zone_exists('fog-test-rg', 'fog-test-zone.com')
end
end
- def test_check_for_zone_false_response
- @service.stub :check_for_zone, false do
- assert !@zones.check_for_zone('fog-test-rg', 'fog-test-zone.com')
+ def test_check_zone_exists_false_response
+ @service.stub :check_zone_exists, true do
+ assert @zones.check_zone_exists('fog-test-rg', 'fog-test-zone.com')
end
end
end