Sha256: e17c2be840d52609f498709c0e3477bbb52e15a0d7e57afbc30ce93f31c43863

Contents?: true

Size: 414 Bytes

Versions: 35

Compression:

Stored size: 414 Bytes

Contents

module Alignment
  attr_accessor :alignment

  step "that alignment should be :alignment" do |expected_alignment|
    alignment.should eq(expected_alignment)
  end
end

steps_for :evil do
  include Alignment

  step "the monster has an alignment" do
    self.alignment = 'Evil'
  end
end

steps_for :neutral do
  include Alignment

  step "the monster has an alignment" do
    self.alignment = 'Neutral'
  end
end

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
turnip-4.4.1 examples/steps/alignment_steps.rb
turnip-4.4.0 examples/steps/alignment_steps.rb
turnip-4.3.0 examples/steps/alignment_steps.rb
turnip-4.2.0 examples/steps/alignment_steps.rb
turnip-4.1.0 examples/steps/alignment_steps.rb
allure_turnip-0.4.0 spec/steps/alignment_steps.rb
allure_turnip-0.3.1 spec/steps/alignment_steps.rb
turnip-4.0.1 examples/steps/alignment_steps.rb
allure_turnip-0.3.0 spec/steps/alignment_steps.rb
turnip-4.0.0 examples/steps/alignment_steps.rb
allure_turnip-0.2.1 spec/steps/alignment_steps.rb
allure_turnip-0.2.0 spec/steps/alignment_steps.rb
allure_turnip-0.1.1 spec/steps/alignment_steps.rb
allure_turnip-0.1.0 spec/steps/alignment_steps.rb
turnip-3.1.0 examples/steps/alignment_steps.rb
turnip-3.0.0 examples/steps/alignment_steps.rb
turnip-3.0.0.pre.beta.5 examples/steps/alignment_steps.rb
turnip-3.0.0.pre.beta.4 examples/steps/alignment_steps.rb
turnip-3.0.0.pre.beta.3 examples/steps/alignment_steps.rb
turnip-3.0.0.pre.beta.2 examples/steps/alignment_steps.rb