Sha256: 0a8dc51010a5a79593f853940a6ef4b1a31f924195fb6cf8827c87a06c908fb4
Contents?: true
Size: 588 Bytes
Versions: 2
Compression:
Stored size: 588 Bytes
Contents
require 'spec_helper' describe Hubspot::Config do describe "#configure" do let(:config){ {hapikey: "demo", base_url: "http://api.hubapi.com/v2"} } subject{ Hubspot::Config.configure(config) } it "changes the hapikey config" do expect{ subject }.to change(Hubspot::Config, :hapikey).to("demo") end it "changes the base_url" do expect{ subject }.to change(Hubspot::Config, :base_url).to("http://api.hubapi.com/v2") end it "sets a default value for base_url" do Hubspot::Config.base_url.should == "https://api.hubapi.com" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hubspot-ruby-0.1.1 | spec/lib/hubspot/config_spec.rb |
hubspot-ruby-0.1.0 | spec/lib/hubspot/config_spec.rb |