Sha256: ca6bb23ed85736f0f853546134b276c025b15f3a20f75be337e209cc74fdcc23

Contents?: true

Size: 608 Bytes

Versions: 15

Compression:

Stored size: 608 Bytes

Contents

# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
#
# Drives the browser in 'headless' mode if required.
# Useful for CI and travis tests
#

if ENV['HEADLESS'] == 'true' || ENV["CI"] == "true"
  require 'headless'
  headless = Headless.new
  headless.start
  HEADLESS_DISPLAY = ":#{headless.display}"
  puts "Running in Headless mode. Display #{HEADLESS_DISPLAY}"
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 spec/features/support/headless.rb
fat_free_crm-0.15.2 spec/features/support/headless.rb
fat_free_crm-0.16.4 spec/features/support/headless.rb
fat_free_crm-0.14.1 spec/features/support/headless.rb
fat_free_crm-0.15.1 spec/features/support/headless.rb
fat_free_crm-0.16.3 spec/features/support/headless.rb
fat_free_crm-0.16.2 spec/features/support/headless.rb
fat_free_crm-0.16.1 spec/features/support/headless.rb
fat_free_crm-0.16.0 spec/features/support/headless.rb
fat_free_crm-0.15.0 spec/features/support/headless.rb
fat_free_crm-0.15.0.beta.2 spec/features/support/headless.rb
fat_free_crm-0.15.0.beta spec/features/support/headless.rb
fat_free_crm-0.14.0 spec/features/support/headless.rb
reduced_fat_crm-0.15.0.beta spec/features/support/headless.rb
reduced_fat_crm-0.14.0 spec/features/support/headless.rb