Sha256: f6781c8ec8659b2ddbc1f0d562b88a9a4d537bbc82cf10e26289ec183434ad11

Contents?: true

Size: 585 Bytes

Versions: 8

Compression:

Stored size: 585 Bytes

Contents

require 'frank-cucumber/frank_helper'
require 'frank-cucumber/frank_mac_helper'
require 'frank-cucumber/launcher'

module Frank
  class Console
    include Frank::Cucumber::FrankHelper
    include Frank::Cucumber::Launcher

    def check_for_running_app
      print 'connecting to app...'
      begin
        Timeout::timeout(5) do
          until frankly_ping
            print '.'
            sleep 0.2
          end
        end
      rescue Timeout::Error
        puts ' failed to connect.'
        return false
      end
      puts ' connected'
      return true
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
frank-cucumber-1.1.13.pre1 lib/frank-cucumber/console.rb
frank-cucumber-1.1.12 lib/frank-cucumber/console.rb
frank-cucumber-1.1.11.pre1 lib/frank-cucumber/console.rb
frank-cucumber-1.1.10 lib/frank-cucumber/console.rb
frank-cucumber-1.1.9.pre1 lib/frank-cucumber/console.rb
frank-cucumber-1.1.8 lib/frank-cucumber/console.rb
frank-cucumber-1.1.7 lib/frank-cucumber/console.rb
frank-cucumber-1.1.6 lib/frank-cucumber/console.rb