Sha256: b5d8c295fcd7c886c2cfc9e7ce22021c9227dddca567e686c4ea2158d7f52de0

Contents?: true

Size: 547 Bytes

Versions: 24

Compression:

Stored size: 547 Bytes

Contents

require 'frank-cucumber/frank_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

24 entries across 24 versions & 1 rubygems

Version Path
frank-cucumber-0.9.5.pre1 lib/frank-cucumber/console.rb
frank-cucumber-0.9.4 lib/frank-cucumber/console.rb
frank-cucumber-0.9.3 lib/frank-cucumber/console.rb
frank-cucumber-0.9.1 lib/frank-cucumber/console.rb