Skip to content

Commit

Permalink
Added spec for sort value required keys
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Oct 11, 2012
1 parent ffb0d9d commit da19e2f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/plucky/normalizers/sort_value_spec.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
}) })
} }


it "raises exception if missing key normalizer" do
expect {
described_class.new
}.to raise_error(ArgumentError, "Missing required key :key_normalizer")
end

it "defaults to nil" do it "defaults to nil" do
subject.call(nil).should eq(nil) subject.call(nil).should eq(nil)
end end
Expand Down

0 comments on commit da19e2f

Please sign in to comment.