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-1.1.5 lib/frank-cucumber/console.rb
frank-cucumber-1.1.4.pre1 lib/frank-cucumber/console.rb
frank-cucumber-1.1.3 lib/frank-cucumber/console.rb
frank-cucumber-1.1.3.pre1 lib/frank-cucumber/console.rb
frank-cucumber-1.1.2 lib/frank-cucumber/console.rb
frank-cucumber-1.1.1 lib/frank-cucumber/console.rb
frank-cucumber-1.1.0 lib/frank-cucumber/console.rb
frank-cucumber-1.0.0 lib/frank-cucumber/console.rb
frank-cucumber-0.9.8 lib/frank-cucumber/console.rb
frank-cucumber-0.9.7 lib/frank-cucumber/console.rb
frank-cucumber-0.9.6 lib/frank-cucumber/console.rb
frank-cucumber-1.0.0.pre2 lib/frank-cucumber/console.rb
frank-cucumber-0.9.5 lib/frank-cucumber/console.rb
frank-cucumber-0.9.5.pre8 lib/frank-cucumber/console.rb
frank-cucumber-0.9.5.pre7 lib/frank-cucumber/console.rb
frank-cucumber-0.9.5.pre6 lib/frank-cucumber/console.rb
frank-cucumber-0.9.5.pre5 lib/frank-cucumber/console.rb
frank-cucumber-0.9.5.pre4 lib/frank-cucumber/console.rb
frank-cucumber-0.9.5.pre3 lib/frank-cucumber/console.rb
frank-cucumber-0.9.5.pre2 lib/frank-cucumber/console.rb