require 'coveralls'
Coveralls.wear_merged!('rails')

require 'pry'

# Require and include helper modules
# in feature/support/helpers and its subdirectories.
Dir[Rails.root.join("features/support/helpers/**/*.rb")].each do |helper|
  require helper
  # Only include _helper.rb methods
  if /_helper.rb/ === helper
    helper_name = "GetItFeatures::#{helper.camelize.demodulize.split('.').first}"
    Cucumber::Rails::World.send(:include, helper_name.constantize)
  end
end

# Configure Capybara
Capybara.configure do |config|
  # config.app_host = 'https://dev.login.library.nyu.edu'
  config.default_driver = :selenium
end

require 'coveralls'
Coveralls.wear_merged!('rails')

require 'pry'

# Require and include helper modules
# in feature/support/helpers and its subdirectories.
Dir[Rails.root.join("features/support/helpers/**/*.rb")].each do |helper|
  require helper
  # Only include _helper.rb methods
  if /_helper.rb/ === helper
    helper_name = "GetItFeatures::#{helper.camelize.demodulize.split('.').first}"
    Cucumber::Rails::World.send(:include, helper_name.constantize)
  end
end

# Configure Capybara
require 'capybara/poltergeist'
Capybara.configure do |config|
  # config.app_host = 'https://dev.login.library.nyu.edu'
  config.default_driver = :poltergeist
end

Use poltergeist as the driver for Capybara
Use poltergeist as the driver for Capybara
