diff options
author | Felipe Artur <felipefac@gmail.com> | 2018-02-24 00:55:49 +0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2018-02-24 00:56:55 +0300 |
commit | ace3bf9adad6d5752bfebafb6606bfa57b3818e4 (patch) | |
tree | a366565c11c468fd9e2d2971723866c6ef14f0a1 /qa | |
parent | 9870c055164ee5b4aa2340322e39eab7678c312d (diff) |
Fix specs
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/factory/product.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qa/qa/factory/product.rb b/qa/qa/factory/product.rb index d892359894f..996b7f14f61 100644 --- a/qa/qa/factory/product.rb +++ b/qa/qa/factory/product.rb @@ -19,7 +19,8 @@ module QA new.tap do |product| factory.class.attributes.each_value do |attribute| product.instance_exec(factory, attribute.block) do |factory, block| - product.define_singleton_method(attribute.name) { block.call(factory) } + value = block.call(factory) + product.define_singleton_method(attribute.name) { value } end end end |