Permalink
Browse files

Added spec for sort value required keys

  • Loading branch information...
1 parent ffb0d9d commit da19e2f4e928ea33ab5d793227cdcae628849b58 @jnunemaker jnunemaker committed Oct 11, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 spec/plucky/normalizers/sort_value_spec.rb
@@ -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
subject.call(nil).should eq(nil)
end

0 comments on commit da19e2f

Please sign in to comment.