Sha256: 6e2c93568ad86ece54bec3beedb1110d77f9ecf131484fb4263f25bd827d45ef

Contents?: true

Size: 672 Bytes

Versions: 15

Compression:

Stored size: 672 Bytes

Contents

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
homeflow_api-1.0.3 spec/homeflow_api_spec.rb
homeflow_api-1.0.2 spec/homeflow_api_spec.rb
homeflow_api-1.0.1 spec/homeflow_api_spec.rb
homeflow_api-1.0.0 spec/homeflow_api_spec.rb
homeflow_api-0.17.15 spec/homeflow_api_spec.rb
homeflow_api-0.17.14 spec/homeflow_api_spec.rb
homeflow_api-0.17.13 spec/homeflow_api_spec.rb
homeflow_api-0.17.12 spec/homeflow_api_spec.rb
homeflow_api-0.17.11 spec/homeflow_api_spec.rb
homeflow_api-0.17.9 spec/homeflow_api_spec.rb
homeflow_api-0.17.8 spec/homeflow_api_spec.rb
homeflow_api-0.17.6 spec/homeflow_api_spec.rb
homeflow_api-0.17.5 spec/homeflow_api_spec.rb
homeflow_api-0.17.4 spec/homeflow_api_spec.rb
homeflow_api-0.17.3 spec/homeflow_api_spec.rb