Sha256: d8e281d7ce98fc5325e0ecc018e22dce5764938f303398341c879f546764c40e
Contents?: true
Size: 633 Bytes
Versions: 5
Compression:
Stored size: 633 Bytes
Contents
module Turnip module DSL def placeholder(name, &block) Turnip::Placeholder.add(name, &block) end def step(description, &block) Turnip::Steps.step(description, &block) end def steps_for(tag, &block) if tag.to_s == "global" warn "[Turnip] using steps_for(:global) is deprecated, add steps to Turnip::Steps instead" Turnip::Steps.module_eval(&block) else Module.new do singleton_class.send(:define_method, :tag) { tag } module_eval(&block) ::RSpec.configure { |c| c.include self, tag => true } end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
turnip-1.2.2 | lib/turnip/dsl.rb |
turnip-1.2.1 | lib/turnip/dsl.rb |
turnip-1.2.0 | lib/turnip/dsl.rb |
turnip-1.1.0 | lib/turnip/dsl.rb |
turnip-1.0.0 | lib/turnip/dsl.rb |