]> cat aescling's git repositories - mastodon.git/commitdiff
Spec HashObject (#3544)
authorAkihiko Odaki (@fn_aki@pawoo.net) <akihiko.odaki.4i@stu.hosei.ac.jp>
Sun, 4 Jun 2017 12:59:52 +0000 (21:59 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 4 Jun 2017 12:59:52 +0000 (14:59 +0200)
spec/lib/hash_object_spec.rb [new file with mode: 0644]

diff --git a/spec/lib/hash_object_spec.rb b/spec/lib/hash_object_spec.rb
new file mode 100644 (file)
index 0000000..ce18065
--- /dev/null
@@ -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