lib/agilibox/cucumber_config.rb in agilibox-1.1.0 vs lib/agilibox/cucumber_config.rb in agilibox-1.2.0
- old
+ new
@@ -5,14 +5,14 @@
def phantomjs_version
@phantomjs_version ||= "2.1.1"
end
- attr_writer :phantomjs_window_size
+ attr_writer :window_size
- def phantomjs_window_size
- @phantomjs_window_size ||= [1680, 1050]
+ def window_size
+ @window_size ||= [1680, 1050]
end
attr_writer :databasecleaner_tables
def databasecleaner_tables
@@ -22,9 +22,18 @@
spatial_ref_sys
)
end
def require_all_helpers!
- files = Dir.glob Agilibox::Engine.root.join("features/support/*.rb")
+ files = Dir.glob Agilibox::Engine.root.join("lib", "agilibox", "cucumber_helpers", "*.rb")
+ files.delete_if { |f| f.match?(/poltergeist|chrome/) }
files.each { |file| require file }
+ end
+
+ def require_poltergeist!
+ require Agilibox::Engine.root.join("lib", "agilibox", "cucumber_helpers", "poltergeist.rb")
+ end
+
+ def require_chrome_headless!
+ require Agilibox::Engine.root.join("lib", "agilibox", "cucumber_helpers", "chrome_headless.rb")
end
end