diff options
author | Akihiko Odaki (@fn_aki@pawoo.net) <akihiko.odaki.4i@stu.hosei.ac.jp> | 2017-06-04 21:59:52 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-06-04 14:59:52 +0200 |
commit | 6505a42be0f0633d1dfaedaa5d4bae399c9481e4 (patch) | |
tree | c0d8907cdb624dfc8f10730a6dd3835399b236df | |
parent | e674608d10e3c0381d2e8172580b36eb553b5279 (diff) |
Spec HashObject (#3544)
-rw-r--r-- | spec/lib/hash_object_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/lib/hash_object_spec.rb b/spec/lib/hash_object_spec.rb new file mode 100644 index 000000000..ce1806520 --- /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 |