about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAkihiko Odaki (@fn_aki@pawoo.net) <akihiko.odaki.4i@stu.hosei.ac.jp>2017-06-04 21:59:52 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-06-04 14:59:52 +0200
commit6505a42be0f0633d1dfaedaa5d4bae399c9481e4 (patch)
treec0d8907cdb624dfc8f10730a6dd3835399b236df
parente674608d10e3c0381d2e8172580b36eb553b5279 (diff)
Spec HashObject (#3544)
-rw-r--r--spec/lib/hash_object_spec.rb9
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