Sha256: 9f3872df14e799e1733dbc67d78814c0a1213efb47ae5459bf65fe01c91f0278
Contents?: true
Size: 510 Bytes
Versions: 2
Compression:
Stored size: 510 Bytes
Contents
require 'test_helper' class CleverConfigurationTest < Test::Unit::TestCase should "set the api key" do Clever.configure do |config| config.api_key = "DEMO_KEY" end assert_equal("DEMO_KEY", Clever.api_key) end should "raise an error if no api key is set" do lambda { Clever.request(stub, stub) }.must_raise Clever::AuthenticationError end should "set a default for the api base" do Clever.configuration.api_base.must_equal('https://api.clever.com/') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
clever-ruby-0.3.1 | test/unit/configuration_test.rb |
clever-ruby-0.3.0 | test/unit/configuration_test.rb |