Sha256: a92f179f072de1c8511d2372098879b99f40fdc2f94c0acc9babb007683fa203
Contents?: true
Size: 937 Bytes
Versions: 1
Compression:
Stored size: 937 Bytes
Contents
require 'spec_helper' describe CleverReach::Configuration do let(:klass) { CleverReach::Configuration } let(:subject) { CleverReach.config } it "should be a singleton" do klass.included_modules.should include(Singleton) end describe "Default configuration" do let(:defaults) do { wsdl_url: 'http://api.cleverreach.com/soap/interface_v5.1.php?wsdl' } end it "should have some default settings" do klass.defaults.should == defaults end it "should use the default settings automatically" do keys = subject.instance_variables.map { |name| name.to_s.sub('@', '').to_sym } keys.should include(*defaults.keys) end end describe "Specifying a list id" do before :each do CleverReach.configure do |config| config.list_id = '123' end end it "should be readable" do subject.list_id.should == '123' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
clever_reach-0.0.1 | spec/clever_reach/configuration_spec.rb |