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.rb35
1 files changed, 0 insertions, 35 deletions
diff --git a/qa/qa/factory/product.rb b/qa/qa/factory/product.rb
deleted file mode 100644
index 34df0bda8e5..00000000000
--- a/qa/qa/factory/product.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-require 'capybara/dsl'
-
-module QA
- module Factory
- class Product
- include Capybara::DSL
-
- attr_reader :factory
-
- def initialize(factory)
- @factory = factory
-
- define_attributes
- end
-
- def visit!
- visit(web_url)
- end
-
- def populate(*attributes)
- attributes.each(&method(:public_send))
- end
-
- private
-
- def define_attributes
- factory.class.attributes_names.each do |name|
- define_singleton_method(name) do
- factory.public_send(name)
- end
- end
- end
- end
- end
-end