Sha256: bb5ce64aa3d19f84899f08deef23376d9c6926ce84a8ae3800aa00d5fcfb736f
Contents?: true
Size: 370 Bytes
Versions: 4
Compression:
Stored size: 370 Bytes
Contents
module RSpec::Steps class Let < Struct.new(:name, :block) def define_on(step_list, group) name = self.name step_list.add_let(name, block) group.let(name) do step_list.let_memo(name, self) end end end class LetBang < Let def define_on(step_list, group) super step_list.add_let_bang(name) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rspec-steps-2.1.1 | lib/rspec-steps/lets.rb |
rspec-steps-2.1.0 | lib/rspec-steps/lets.rb |
rspec-steps-2.0.1 | lib/rspec-steps/lets.rb |
rspec-steps-2.0.0 | lib/rspec-steps/lets.rb |