Skip to content

Commit

Permalink
Use parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxwell Bernstein committed Jul 9, 2015
1 parent 4091c4c commit 3fd814b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
20 changes: 10 additions & 10 deletions lib/adapter/spec/an_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@
describe "#key?" do
it "returns true if key available" do
adapter.write(key, attributes)
adapter.key?(key).should be true
adapter.key?(key).should be(true)
end

it "returns false if key not available" do
adapter.key?(key).should be false
adapter.key?(key).should be(false)
end

it "accepts options" do
Expand Down Expand Up @@ -163,17 +163,17 @@
context "when key available" do
it "removes key" do
adapter.write(key, attributes)
adapter.key?(key).should be true
adapter.key?(key).should be(true)
adapter.delete(key)
adapter.key?(key).should be false
adapter.key?(key).should be(false)
end
end

context "when key not available" do
it "does not complain" do
adapter.key?(key).should be false
adapter.key?(key).should be(false)
adapter.delete(key)
adapter.key?(key).should be false
adapter.key?(key).should be(false)
end
end

Expand All @@ -188,11 +188,11 @@
it "removes all available keys" do
adapter.write(key, attributes)
adapter.write(key2, attributes2)
adapter.key?(key).should be true
adapter.key?(key2).should be true
adapter.key?(key).should be(true)
adapter.key?(key2).should be(true)
adapter.clear
adapter.key?(key).should be false
adapter.key?(key2).should be false
adapter.key?(key).should be(false)
adapter.key?(key2).should be(false)
end

it "accepts options" do
Expand Down
10 changes: 5 additions & 5 deletions spec/adapter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
Class.new do
include Adapter.definitions[:memory]
end.tap do |klass|
klass.new.respond_to?(:fetch).should be true
klass.new.respond_to?(:key?).should be true
klass.new.respond_to?(:read_multiple).should be true
klass.new.respond_to?(:fetch).should be(true)
klass.new.respond_to?(:key?).should be(true)
klass.new.respond_to?(:read_multiple).should be(true)
end
end

Expand Down Expand Up @@ -222,11 +222,11 @@ def clear
describe "#key?" do
it "returns true if key is set" do
adapter.write('foo', 'bar')
adapter.key?('foo').should be true
adapter.key?('foo').should be(true)
end

it "returns false if key is not set" do
adapter.key?('foo').should be false
adapter.key?('foo').should be(false)
end
end

Expand Down

0 comments on commit 3fd814b

Please sign in to comment.