File: cucumber.rb

package info (click to toggle)
ruby-knapsack 4.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,092 kB
  • sloc: ruby: 2,883; makefile: 4
file content (25 lines) | stat: -rw-r--r-- 554 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module Cucumber
  # Cucumber 1 and 2
  # https://github.com/cucumber/cucumber-ruby/blob/v2.99.0/lib/cucumber/rb_support/rb_dsl.rb
  module RbSupport
    class RbDsl
      class << self
        def register_rb_hook(phase, tag_names, proc)
          proc.call
        end
      end
    end
  end

  # Cucumber 3
  # https://github.com/cucumber/cucumber-ruby/blob/v3.0.0/lib/cucumber/glue/dsl.rb
  module Glue
    class Dsl
      class << self
        def register_rb_hook(phase, tag_names, proc)
          proc.call
        end
      end
    end
  end
end