summaryrefslogtreecommitdiff
path: root/qa/qa/factory/product.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-01-11 10:58:56 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-01-11 10:58:56 +0100
commitd32a151714c01bc09484d423dd2136a89760b5ef (patch)
tree2f532870a05b1d9b77bc10183ff353605ba31682 /qa/qa/factory/product.rb
parent1011ca49495eb1f48d43694bfbb2a96951fd45ba (diff)
downloadgitlab-ce-d32a151714c01bc09484d423dd2136a89760b5ef.tar.gz
Make it possible to define QA factory product attributes
Diffstat (limited to 'qa/qa/factory/product.rb')
-rw-r--r--qa/qa/factory/product.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/qa/qa/factory/product.rb b/qa/qa/factory/product.rb
index df35bbbb443..2558350f8a3 100644
--- a/qa/qa/factory/product.rb
+++ b/qa/qa/factory/product.rb
@@ -5,6 +5,8 @@ module QA
class Product
include Capybara::DSL
+ Attribute = Struct.new(:name, :block)
+
def initialize(factory)
@factory = factory
@location = current_url