Commit 784ecdee authored by Felipe Artur's avatar Felipe Artur

Fix specs

parent 61285da4
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment