Step list
Step name | Defined file (with line number) |
---|---|
I run :cmd |
/tmp/turnip/examples/steps/backtick_steps.rb:1 step "I run :cmd" do |cmd| step('I attack it') if cmd == 'killall monsters' end |
there are :count monkeys with :color hair |
/tmp/turnip/examples/steps/more_steps.rb:1 step "there are :count monkeys with :color hair" do |count, color| @monkeys = Array.new(count) { color } end |
there should be 3 monkeys with blue hair |
/tmp/turnip/examples/steps/more_steps.rb:5 step "there should be 3 monkeys with blue hair" do @monkeys.should == [:blue, :blue, :blue] end |
Step name | Defined file (with line number) |
---|---|
the monster has an alignment |
/tmp/turnip/examples/steps/alignment_steps.rb:12 step "the monster has an alignment" do self.alignment = 'Evil' end |
that alignment should be :alignment |
/tmp/turnip/examples/steps/alignment_steps.rb:4 step "that alignment should be :alignment" do |expected_alignment| alignment.should eq(expected_alignment) end |
Step name | Defined file (with line number) |
---|---|
the monster has an alignment |
/tmp/turnip/examples/steps/alignment_steps.rb:20 step "the monster has an alignment" do self.alignment = 'Neutral' end |
that alignment should be :alignment |
/tmp/turnip/examples/steps/alignment_steps.rb:4 step "that alignment should be :alignment" do |expected_alignment| alignment.should eq(expected_alignment) end |
Step name | Defined file (with line number) |
---|---|
an auto-loaded step is available |
/tmp/turnip/examples/steps/autoload_steps.rb:2 step 'an auto-loaded step is available' do true.should be end |
Step name | Defined file (with line number) |
---|---|
there is a knight |
/private/tmp/turnip/examples/steps/knight_steps.rb:18 step "there is a knight" do self.knight = Knight.new end |
the knight is alive |
/private/tmp/turnip/examples/steps/knight_steps.rb:22 step "the knight is alive" do knight.should be_alive end |
the knight is dead |
/private/tmp/turnip/examples/steps/knight_steps.rb:26 step "the knight is dead" do knight.should_not be_alive end |
there is a knight |
/tmp/turnip/examples/steps/knight_steps.rb:18 step "there is a knight" do self.knight = Knight.new end |
the knight is alive |
/tmp/turnip/examples/steps/knight_steps.rb:22 step "the knight is alive" do knight.should be_alive end |
the knight is dead |
/tmp/turnip/examples/steps/knight_steps.rb:26 step "the knight is dead" do knight.should_not be_alive end |
Step name | Defined file (with line number) |
---|---|
there is a dragon |
/tmp/turnip/examples/steps/dragon_steps.rb:12 step "there is a dragon" do self.dragon = 1 end |
the dragon attacks the knight |
/tmp/turnip/examples/steps/dragon_steps.rb:16 step "the dragon attacks the knight" do knight.attacked_for(dragon_attack) end |
there is a knight |
/private/tmp/turnip/examples/steps/knight_steps.rb:18 step "there is a knight" do self.knight = Knight.new end |
the knight is alive |
/private/tmp/turnip/examples/steps/knight_steps.rb:22 step "the knight is alive" do knight.should be_alive end |
the knight is dead |
/private/tmp/turnip/examples/steps/knight_steps.rb:26 step "the knight is dead" do knight.should_not be_alive end |
Step name | Defined file (with line number) |
---|---|
the dragon breathes fire |
/tmp/turnip/examples/steps/dragon_steps.rb:35 step "the dragon breathes fire" do self.red_dragon = 1 end |
there is a dragon |
/tmp/turnip/examples/steps/dragon_steps.rb:12 step "there is a dragon" do self.dragon = 1 end |
the dragon attacks the knight |
/tmp/turnip/examples/steps/dragon_steps.rb:16 step "the dragon attacks the knight" do knight.attacked_for(dragon_attack) end |
there is a knight |
/private/tmp/turnip/examples/steps/knight_steps.rb:18 step "there is a knight" do self.knight = Knight.new end |
the knight is alive |
/private/tmp/turnip/examples/steps/knight_steps.rb:22 step "the knight is alive" do knight.should be_alive end |
the knight is dead |
/private/tmp/turnip/examples/steps/knight_steps.rb:26 step "the knight is dead" do knight.should_not be_alive end |
Step name | Defined file (with line number) |
---|---|
visible callee |
/tmp/turnip/examples/steps/step_calling_steps.rb:2 step 'visible callee' do @testing = 123 end |
a visible step call |
/tmp/turnip/examples/steps/step_calling_steps.rb:6 step 'a visible step call' do step 'visible callee' @testing.should eq(123) end |
an invisible step call |
/tmp/turnip/examples/steps/step_calling_steps.rb:11 step 'an invisible step call' do step 'this is an unimplemented step' end |
a global step call |
/tmp/turnip/examples/steps/step_calling_steps.rb:15 step 'a global step call' do step 'there is a monster' @monster.should == 1 end |
an included call |
/tmp/turnip/examples/steps/step_calling_steps.rb:20 step 'an included call' do step 'an auto-loaded step is available' end |