spec/weeter/configuration_spec.rb in weeter-0.15.0 vs spec/weeter/configuration_spec.rb in weeter-0.17.0
- old
+ new
@@ -1,15 +1,15 @@
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
+ it "returns the instance" do
+ expect(Weeter::Configuration.instance.twitter).to eq(Weeter::Configuration::TwitterConfig.instance)
end
- it "should yield the instance when a block is provided" do
+ it "yields the instance when a block is provided" do
Weeter::Configuration.instance.twitter do |twitter_config|
- twitter_config.should == Weeter::Configuration::TwitterConfig.instance
+ expect(twitter_config).to eq(Weeter::Configuration::TwitterConfig.instance)
end
end
end
-end
\ No newline at end of file
+end