Permalink
Browse files

Use more Ruby 1.9 Symbol Hash syntax.

  • Loading branch information...
1 parent 903fc7c commit bb0c23db2f6723b3bb56cb5772e0df1dfbbc2785 @postmodern postmodern committed Apr 3, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 spec/sql/emittable_spec.rb
  2. +2 −2 spec/sql/injection_spec.rb
@@ -11,7 +11,7 @@
end
it "should accept Emitter options" do
- subject.emitter(:case => :lower).case.should == :lower
+ subject.emitter(case: :lower).case.should == :lower
end
end
@@ -23,7 +23,7 @@
let(:place_holders) { described_class::PLACE_HOLDERS }
let(:escape) { :string }
- subject { described_class.new(:escape => escape) }
+ subject { described_class.new(escape: escape) }
it "should default the place_holder based on the :escape type" do
subject.place_holder.should == place_holders[escape]
@@ -34,7 +34,7 @@
context "with :place_holder" do
let(:data) { 'A' }
- subject { described_class.new(:place_holder => data) }
+ subject { described_class.new(place_holder: data) }
it "should pass it to the InjectionExpr" do
subject.expression.expression.should == data

0 comments on commit bb0c23d

Please sign in to comment.