fabricator with hstore attribute
问题 I am trying to build a fabricator using 'fabrication', '2.8.1' with a hstore attribute. Fabricator(:inventory_item_change) do attribute_changes Hash.new("num_units" => "to:50") state "scheduled" change_code 1 execution_at Time.now.advance(days: 3) inventory_item end This is the error message I am receiving when running tests with this fabricator. I've isolated the problem to be the hstore attribute: attribute changes. Failure/Error: attr = Fabricate.attributes_for(:inventory_item_change)