Sha256: 6587626198e2cbe0f1cc2f8c62518abfee3690dedec6cd76953c067d1e14b74a

Contents?: true

Size: 898 Bytes

Versions: 14

Compression:

Stored size: 898 Bytes

Contents

module Cucumber
  module Ast
    class StepInvocation #:nodoc:#
      class << self
        attr_accessor :wait_time
      end

      def invoke_with_swt(step_mother, options)
        block = Swt::RRunnable.new { invoke_without_swt(step_mother, options) }

        Swt.sync_exec(&block)
        sleep ENV["SLOW_CUKES"].to_f if ENV["SLOW_CUKES"]
        sleep(Cucumber::Ast::StepInvocation.wait_time || 0)
        Cucumber::Ast::StepInvocation.wait_time = nil
      end

      alias_method :invoke_without_swt, :invoke
      alias_method :invoke, :invoke_with_swt
    end
  end

  module Cli
    class Configuration
      def require_dirs_with_redcar_plugins
        require_dirs_without_redcar_plugins + Dir['plugins/*/features']
      end

      alias_method :require_dirs_without_redcar_plugins, :require_dirs
      alias_method :require_dirs, :require_dirs_with_redcar_plugins
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
swt-4.6.1.1 lib/swt/cucumber_patches.rb
swt-4.6.1 lib/swt/cucumber_patches.rb
swt-4.4 lib/swt/cucumber_patches.rb
swt-0.18 lib/swt/cucumber_patches.rb
swt-0.17 lib/swt/cucumber_patches.rb
swt-0.16 lib/swt/cucumber_patches.rb
swt-0.15 lib/swt/cucumber_patches.rb
swt-0.13 lib/swt/cucumber_patches.rb
swt-0.12 lib/swt/cucumber_patches.rb
swt-0.11 lib/swt/cucumber_patches.rb
swt-0.10 lib/swt/cucumber_patches.rb
swt-0.9-java lib/swt/cucumber_patches.rb
swt-0.8-java lib/swt/cucumber_patches.rb
swt-0.6-java lib/swt/cucumber_patches.rb