Sha256: 38fd00a429522a73980bac65c7d274172aefa438f4ba97608ed8eebb783c1f68
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 KB
Contents
# LeadTune API Ruby Gem # # http://github.com/leadtune/leadtune-ruby # Eric Wollesen (mailto:devs@leadtune.com) # Copyright 2010 LeadTune LLC require "spec_helper" describe Leadtune::Config do before(:each) {teardown_initializer} after(:each) {teardown_initializer} it "reads environment from APP_ENV" do ENV["APP_ENV"] = "production" subject.environment.should == :production ENV.delete("APP_ENV") end context("can set") do it "api_key" do Leadtune::Config.api_key = "DeadB33fDeadB33fDeadB33fDeadB33fDeadB33f" Leadtune::Config.new.api_key.should == "DeadB33fDeadB33fDeadB33fDeadB33fDeadB33f" end it "timeout" do Leadtune::Config.timeout = 5 Leadtune::Config.new.timeout.should == 5 end it "organization" do Leadtune::Config.organization = "ORG" Leadtune::Config.new.organization.should == "ORG" end it "leadtune_host" do Leadtune::Config.leadtune_host = "http://bad_url_for_test" Leadtune::Config.new.leadtune_host.should == "http://bad_url_for_test" end it "query_params" do Leadtune::Config.query_params = {"foo" => "bar"} Leadtune::Config.new.query_params.should == {"foo" => "bar"} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
leadtune-0.0.9 | spec/leadtune/config_spec.rb |