test/test_openamplify.rb in openamplify-0.2.1 vs test/test_openamplify.rb in openamplify-0.2.2

- old
+ new

@@ -60,13 +60,16 @@ client.analysis = 'not supported' client.analyze_text('sample').reload end end + #pending "show the request url" + end # Response context "Request methods" do + should "raise an error if not supported" do assert_raises OpenAmplify::NotSupported do client.method = :delete client.analyze_text('sample').reload @@ -83,9 +86,13 @@ end end # Request methods def client - @client ||= OpenAmplify::Client.new(:api_key => ENV['OPEN_AMPLIFY_KEY']) + @client ||= OpenAmplify::Client.new(:api_key => api_key) + end + + def api_key + ENV['OPEN_AMPLIFY_KEY'] end end # OpenAmplifyTest