spec/lol/client_spec.rb in ruby-lol-0.9.17 vs spec/lol/client_spec.rb in ruby-lol-0.9.18

- old
+ new

@@ -22,11 +22,11 @@ context "caching" do let(:client) { Client.new "foo", redis: "redis://dummy-url" } let(:real_redis) { Client.new "foo", redis: "redis://localhost:6379" } it "sets caching if redis is specified in the options" do - expect(client.cached?).to be_true + expect(client.cached?).to be_truthy end it "sets a default ttl of 15 * 60s" do expect(client.ttl).to eq(15*60) end @@ -48,15 +48,15 @@ end describe "#cached?" do it "is true if @cached is true" do subject.instance_variable_set(:@cached, true) - expect(subject.cached?).to be_true + expect(subject.cached?).to be_truthy end it "is false if @cached is false" do subject.instance_variable_set(:@cached, false) - expect(subject.cached?).to be_false + expect(subject.cached?).to be_falsy end end describe "#champion" do it "returns an instance of ChampionRequest" do