spec/momm/momm_spec.rb in momm-0.0.7 vs spec/momm/momm_spec.rb in momm-1.0.0

- old
+ new

@@ -1,51 +1,51 @@ require 'spec_helper' describe Momm do context "Calculator delegation" do it "should respond to exchange_rate" do - Momm.should respond_to :exchange_rate + expect(Momm).to respond_to :exchange_rate end it "should respond to exchange" do - Momm.should respond_to :exchange + expect(Momm).to respond_to :exchange end it "should respond to exchange_from_gbp_to_usd" do - Momm.should respond_to :exchange_from_gbp_to_usd + expect(Momm).to respond_to :exchange_from_gbp_to_usd end it "should respond to exchange_rate_from_gbp_to_usd" do - Momm.should respond_to :exchange_rate_from_gbp_to_usd + expect(Momm).to respond_to :exchange_rate_from_gbp_to_usd end it "should respond to update!" do - Momm.should respond_to :update! + expect(Momm).to respond_to :update! end end describe "bridge delegation" do it "should be successfully switch to redis store halfway" do Momm.store :redis_store - Momm.send(:calculator).storage.client.should be_a(Redis::Namespace) + expect(Momm.send(:calculator).storage.client).to be_a(Redis::Namespace) Momm.store :memcached end it "should be successfully switch to ECB halfway" do Momm.source :ECB - Momm.send(:calculator).feed.should be_a(Momm::Feeds::ECB) + expect(Momm.send(:calculator).feed).to be_a(Momm::Feeds::ECB) end end describe ".setup" do it "can config" do Momm.setup do store :redis_store end - Momm.send(:calculator).storage.should be_a(Momm::RedisStore) - Momm.send(:calculator).feed.should be_a(Momm::Feeds::ECB) + expect(Momm.send(:calculator).storage).to be_a(Momm::RedisStore) + expect(Momm.send(:calculator).feed).to be_a(Momm::Feeds::ECB) Momm.store :memcached end end -end \ No newline at end of file +end