Sha256: 3d30d12882050fa3a3ab0dee7247966a97e89ca542b230ee78fed7561a67cc78
Contents?: true
Size: 977 Bytes
Versions: 1
Compression:
Stored size: 977 Bytes
Contents
require "spec_helper" describe "3scaleApi" do before(:all) do ENV["THREESCALE_URL"] = nil ENV["THREESCALE_PROVIDER_KEY"] = nil end it "should raise an error when there is no env variables and you instantiate" do lambda do Threescale::API.new end.should raise_error end it "should raise an error when there is no env variables and you instantiate obj" do lambda do ENV["THREESCALE_URL"] = "test-url" Threescale::API.new end.should raise_error end it "should not raise an error when there is one env variables and you instantiate" do lambda do ENV["THREESCALE_URL"] = "test-url" Threescale::API.new "provider-key" end.should_not raise_error end it "should not raise an error when both env variables and you instantiate" do lambda do ENV["THREESCALE_URL"] = "test-url" ENV["THREESCALE_PROVIDER_KEY"] = "provider-key" Threescale::API.new end.should_not raise_error end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
3scale_api-1.0.1 | spec/3scale_api_spec.rb |