summaryrefslogtreecommitdiff
path: root/spec/hashie/extensions/method_access_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/hashie/extensions/method_access_spec.rb')
-rw-r--r--spec/hashie/extensions/method_access_spec.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/hashie/extensions/method_access_spec.rb b/spec/hashie/extensions/method_access_spec.rb
index dcd049d..b749098 100644
--- a/spec/hashie/extensions/method_access_spec.rb
+++ b/spec/hashie/extensions/method_access_spec.rb
@@ -128,7 +128,14 @@ describe Hashie::Extensions::MethodAccess do
it 'includes all of the other method mixins' do
klass = Class.new(Hash)
klass.send :include, Hashie::Extensions::MethodAccess
- expect((klass.ancestors & [Hashie::Extensions::MethodReader, Hashie::Extensions::MethodWriter, Hashie::Extensions::MethodQuery]).size).to eq 3
+
+ included_modules = klass.ancestors & [
+ Hashie::Extensions::MethodReader,
+ Hashie::Extensions::MethodWriter,
+ Hashie::Extensions::MethodQuery
+ ]
+
+ expect(included_modules.size).to eq 3
end
end