commit: 6505a42be0f0633d1dfaedaa5d4bae399c9481e4
parent: e674608d10e3c0381d2e8172580b36eb553b5279
Author: Akihiko Odaki (@fn_aki@pawoo.net) <akihiko.odaki.4i@stu.hosei.ac.jp>
Date: Sun, 4 Jun 2017 21:59:52 +0900
Spec HashObject (#3544)
Diffstat:
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/spec/lib/hash_object_spec.rb 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