Skip to content

Instantly share code, notes, and snippets.

@msassak
Created September 16, 2009 21:10
Show Gist options
  • Select an option

  • Save msassak/188192 to your computer and use it in GitHub Desktop.

Select an option

Save msassak/188192 to your computer and use it in GitHub Desktop.
irb(main):001:0> require 'cucumber'
=> true
irb(main):002:0> sm = Cucumber::StepMother.new
=> #<Cucumber::StepMother:0x1192ca0 @programming_languages=[], @adverbs=["Given", "When", "Then", "And", "But"], @unsupported_programming_languages=[], @language_map={}>
irb(main):003:0> sm.load_code_files("./cuke_steps.rb")
D, [2009-09-16T17:09:05.531395 #8769] DEBUG -- : Code:
D, [2009-09-16T17:09:05.535501 #8769] DEBUG -- : * ./cuke_steps.rb
D, [2009-09-16T17:09:05.535807 #8769] DEBUG -- :
=> true
irb(main):004:0> sm.step_definitions
=> [#<Cucumber::RbSupport::RbStepDefinition:0x1183548 @regexp=/^I am a step$/, @rb_language=#<Cucumber::RbSupport::RbLanguage:0x1183a84 @step_mother=#<Cucumber::StepMother:0x1192ca0 @log=#<Logger:0x118feb0 @level=0, @logdev=#<Logger::LogDevice:0x118fe60 @filename=nil, @shift_age=nil, @dev=#<IO:0x2267d0>, @mutex=#<Logger::LogDevice::LogDeviceMutex:0x118fe38 @mon_owner=nil, @mon_waiting_queue=[], @mon_entering_queue=[], @mon_count=0>, @shift_size=nil>, @default_formatter=#<Logger::Formatter:0x118fe88 @datetime_format=nil>, @formatter=nil, @progname=nil>, @programming_languages=[#<Cucumber::RbSupport::RbLanguage:0x1183a84 ...>], @adverbs=["Given", "When", "Then", "And", "But"], @unsupported_programming_languages=[], @language_map={"rb"=>#<Cucumber::RbSupport::RbLanguage:0x1183a84 ...>}, @step_definitions=[...]>, @step_definitions=nil>, @proc=#<Proc:0x011835e8@./cuke_steps.rb:1>>]
irb(main):005:0> sm = Cucumber::StepMother.new
=> #<Cucumber::StepMother:0x117f1f0 @programming_languages=[], @unsupported_programming_languages=[], @language_map={}>
irb(main):006:0> sm.load_code_files("./cuke_steps.rb")
D, [2009-09-16T17:09:22.224990 #8769] DEBUG -- : Code:
D, [2009-09-16T17:09:22.225228 #8769] DEBUG -- : * ./cuke_steps.rb
D, [2009-09-16T17:09:22.225323 #8769] DEBUG -- :
=> true
irb(main):007:0> sm.step_definitions
=> []
irb(main):008:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment