Sha256: 9e3955f134d60d251f5a00717397c6d4b8b54d8240ca5f4180915c01d59687b9

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

include CommandUnit

scenario 'When blahblahs are whatnots' do

  set_up do |context|
    puts 'set_up called!'
    context[:thing] = 'some property set in set_up'
  end

  when_i "don't do anything" do |context|
    # Doing nothing
    puts 'when_i called!'
    context[:thing2] = 'thing'
  end

  i_expect 'to see a nice success message' do |context|
    puts 'i_expect called!'
    context[:thing3] = 'thang'
  end

end

run

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
command-unit-0.0.0 test/quick-test.rb