Sha256: 1dbaeeadbf27c23980f41d5b6ba53895ad5f16ea71fe049ff9bda72af5dc9e61

Contents?: true

Size: 465 Bytes

Versions: 8

Compression:

Stored size: 465 Bytes

Contents

require 'spec_helper'

describe Weeter::Configuration do
  describe "#twitter" do
    it "should return the instance" do
      Weeter::Configuration.instance.twitter.should == Weeter::Configuration::TwitterConfig.instance
    end

    it "should yield the instance when a block is provided" do
      Weeter::Configuration.instance.twitter do |twitter_config|
        twitter_config.should == Weeter::Configuration::TwitterConfig.instance
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
weeter-0.15.0 spec/weeter/configuration_spec.rb
weeter-0.14.0 spec/weeter/configuration_spec.rb
weeter-0.13.0 spec/weeter/configuration_spec.rb
weeter-0.11.0 spec/weeter/configuration_spec.rb
weeter-0.10.0 spec/weeter/configuration_spec.rb
weeter-0.9.2 spec/weeter/configuration_spec.rb
weeter-0.9.1 spec/weeter/configuration_spec.rb
weeter-0.9.0 spec/weeter/configuration_spec.rb