Sha256: f960a35ce2663bc71d1b3c9f902ac0d14afcfbb95ef467dd3278cc64078a4cbf

Contents?: true

Size: 464 Bytes

Versions: 7

Compression:

Stored size: 464 Bytes

Contents

require 'spec_helper'

describe Weeter::Configuration do
  describe "#twitter" do
    it "returns the instance" do
      expect(Weeter::Configuration.instance.twitter).to eq(Weeter::Configuration::TwitterConfig.instance)
    end

    it "yields the instance when a block is provided" do
      Weeter::Configuration.instance.twitter do |twitter_config|
        expect(twitter_config).to eq(Weeter::Configuration::TwitterConfig.instance)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
weeter-0.19.4 spec/weeter/configuration_spec.rb
weeter-0.19.3 spec/weeter/configuration_spec.rb
weeter-0.19.2 spec/weeter/configuration_spec.rb
weeter-0.19.1 spec/weeter/configuration_spec.rb
weeter-0.19.0 spec/weeter/configuration_spec.rb
weeter-0.18.0 spec/weeter/configuration_spec.rb
weeter-0.17.0 spec/weeter/configuration_spec.rb