Sha256: 29b9dd6a61790104a37c86926ceade3b3a64f4f179c8704b9b42afe9c14a5677

Contents?: true

Size: 491 Bytes

Versions: 96

Compression:

Stored size: 491 Bytes

Contents

module Cucumber
  module RbSupport
    # Wrapper for Before, After and AfterStep hooks
    class RbHook
      attr_reader :tag_expressions

      def initialize(rb_language, tag_expressions, proc)
        @rb_language = rb_language
        @tag_expressions = tag_expressions
        @proc = proc
      end

      def invoke(location, argument, &block)
        @rb_language.current_world.cucumber_instance_exec(false, location, *[argument, block].compact, &@proc)
      end
    end
  end
end

Version data entries

96 entries across 92 versions & 12 rubygems

Version Path
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/cucumber-1.2.1/lib/cucumber/rb_support/rb_hook.rb
cucumber-1.2.1 lib/cucumber/rb_support/rb_hook.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/rb_support/rb_hook.rb
ftl-0.2.0 vendor/bundle/gems/cucumber-1.2.0/lib/cucumber/rb_support/rb_hook.rb
cucumber-1.2.0 lib/cucumber/rb_support/rb_hook.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/rb_support/rb_hook.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/rb_support/rb_hook.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/rb_support/rb_hook.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/rb_support/rb_hook.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/rb_support/rb_hook.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/rb_support/rb_hook.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/rb_support/rb_hook.rb
cucumber-1.1.9 lib/cucumber/rb_support/rb_hook.rb
cucumber-1.1.8 lib/cucumber/rb_support/rb_hook.rb
cucumber-1.1.7 lib/cucumber/rb_support/rb_hook.rb
cucumber-1.1.6 lib/cucumber/rb_support/rb_hook.rb
cucumber-1.1.5 lib/cucumber/rb_support/rb_hook.rb
cucumber-1.1.4 lib/cucumber/rb_support/rb_hook.rb
cucumber-1.1.3 lib/cucumber/rb_support/rb_hook.rb
cucumber-1.1.2 lib/cucumber/rb_support/rb_hook.rb