summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordblock <dblock@dblock.org>2014-03-30 20:01:53 -0400
committerdblock <dblock@dblock.org>2014-03-30 20:01:53 -0400
commitaba2d0446df9ed2749ff213ba4ed5bca55e75a19 (patch)
tree8e2a6f5789fd35949d7a2c2b591b1214111bb544
parentfa8f1a8a5e3c317e4f5e5fcd36095d3a432121cc (diff)
downloadhashie-aba2d0446df9ed2749ff213ba4ed5bca55e75a19.tar.gz
Added explicit test for #125.
-rw-r--r--spec/hashie/mash_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/hashie/mash_spec.rb b/spec/hashie/mash_spec.rb
index 362ff29..26806a6 100644
--- a/spec/hashie/mash_spec.rb
+++ b/spec/hashie/mash_spec.rb
@@ -333,6 +333,10 @@ describe Hashie::Mash do
it "should not respond to an unknown key without a suffix" do
Hashie::Mash.new(:abc => 'def').should_not be_respond_to(:xyz)
end
+
+ it "should not respond to permitted?" do
+ Hashie::Mash.new.should_not be_respond_to(:permitted?)
+ end
end
context "#initialize" do