summaryrefslogtreecommitdiff
path: root/qa/qa/factory/product.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/factory/product.rb')
-rw-r--r--qa/qa/factory/product.rb3
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