Sha256: 78547aa7909f06661d1d0bea8b08abed5c141f8571041a729d5d798e2f66dac3

Contents?: true

Size: 479 Bytes

Versions: 12

Compression:

Stored size: 479 Bytes

Contents

module Turnip
  # In this module should be combined common turnip steps
  module Steps
    # PUT GLOBAL STEPS HERE
  end
end

# This module combines turnip steps for example.feature
module MonsterSteps
  attr_accessor :monster

  step 'there is a monster' do
    self.monster = 1
  end

  step 'I attack it' do
    self.monster -= 1
  end

  step 'it should die' do
    expect(self.monster).to eq(0)
  end
end

RSpec.configure { |c| c.include MonsterSteps, monster_steps: true }

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
howitzer-2.6.1 generators/turnip/templates/common_steps.rb
howitzer-2.6.0 generators/turnip/templates/common_steps.rb
howitzer-2.5.0 generators/turnip/templates/common_steps.rb
howitzer-2.4.0 generators/turnip/templates/common_steps.rb
howitzer-2.3.0 generators/turnip/templates/common_steps.rb
howitzer-2.2.0 generators/turnip/templates/common_steps.rb
howitzer-2.1.1 generators/turnip/templates/common_steps.rb
howitzer-2.1.0 generators/turnip/templates/common_steps.rb
howitzer-2.0.3 generators/turnip/templates/common_steps.rb
howitzer-2.0.2 generators/turnip/templates/common_steps.rb
howitzer-2.0.1 generators/turnip/templates/common_steps.rb
howitzer-2.0.0 generators/turnip/templates/common_steps.rb