Sha256: 730d1473f7fe358694bc3306b170021739a050a504881571799e78c9e023a285

Contents?: true

Size: 475 Bytes

Versions: 5

Compression:

Stored size: 475 Bytes

Contents

require 'spec_helper'
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

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
homeflow_api-0.17.1 spec/homeflow_api_spec.rb
homeflow_api-0.17.0 spec/homeflow_api_spec.rb
homeflow_api-0.16.0 spec/homeflow_api_spec.rb
homeflow_api-0.14.4 spec/homeflow_api_spec.rb
homeflow_api-0.14.3 spec/homeflow_api_spec.rb