From: Akihiko Odaki (@fn_aki@pawoo.net) Date: Sun, 4 Jun 2017 12:59:52 +0000 (+0900) Subject: Spec HashObject (#3544) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=6505a42be0f0633d1dfaedaa5d4bae399c9481e4;p=mastodon.git Spec HashObject (#3544) --- 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