test/test_features.rb in heroku-api-0.2.7 vs test/test_features.rb in heroku-api-0.2.8
- old
+ new
@@ -3,11 +3,11 @@
class TestFeatures < MiniTest::Unit::TestCase
def setup
@feature_data ||= begin
data = File.read("#{File.dirname(__FILE__)}/../lib/heroku/api/mock/cache/get_features.json")
- features_data = Heroku::API.json_decode(data)
+ features_data = Heroku::API::OkJson.decode(data)
features_data.detect {|feature| feature['name'] == 'user_env_compile'}
end
end
def test_delete_feature
@@ -38,10 +38,10 @@
with_app do |app_data|
response = heroku.get_features(app_data['name'])
data = File.read("#{File.dirname(__FILE__)}/../lib/heroku/api/mock/cache/get_features.json")
assert_equal(200, response.status)
- assert_equal(Heroku::API.json_decode(data), response.body)
+ assert_equal(Heroku::API::OkJson.decode(data), response.body)
end
end
def test_get_feature
with_app do |app_data|