From 6505a42be0f0633d1dfaedaa5d4bae399c9481e4 Mon Sep 17 00:00:00 2001 From: "Akihiko Odaki (@fn_aki@pawoo.net)" Date: Sun, 4 Jun 2017 21:59:52 +0900 Subject: [PATCH] Spec HashObject (#3544) --- spec/lib/hash_object_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 spec/lib/hash_object_spec.rb diff --git a/spec/lib/hash_object_spec.rb b/spec/lib/hash_object_spec.rb new file mode 100644 index 00000000..ce180652 --- /dev/null +++ b/spec/lib/hash_object_spec.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +require 'rails_helper' + +describe HashObject do + it 'has methods corresponding to hash properties' do + expect(HashObject.new(key: 'value').key).to eq 'value' + end +end