require 'spec_helper' require 'logger' describe Homeflow::API do context "when setting up" do it "should provide a config block" do Homeflow::API.configure do |config| config.api_key = "test api key" end Homeflow::API.configuration.api_key.should == "test api key" end it "should provide setters" do Homeflow::API.configuration.api_key = "test api key" Homeflow::API.configuration.api_key.should == "test api key" end it "should provide a logger" do Homeflow::API.configure do |config| config.api_key = "test api key" config.logger = Logger.new('log.log') end end end end