Sha256: 90f88fea52f70551fe95c94ee564a3183ea1c4d6fa3502deb06bccf6082ef24f

Contents?: true

Size: 543 Bytes

Versions: 11

Compression:

Stored size: 543 Bytes

Contents

# This helper is used to demonstrate
# the use of advice --before, after
# and when clauses.

count   = 0
pudding = []

When(:load) do
  pudding << "load #{File.basename(__FILE__)}"
end

When(:unload) do
  pudding << "unload #{File.basename(__FILE__)}"
end

#Before do
#  pudding << :before_step
#end

#After do
#  pudding << :after_step
#end

When /.*?/ do
  count += 1
end

When /proof is in the pudding/ do
  pudding << 'proof'
end

#When /proof is in the pussing/ do
#  pudding << :proof
#end

#
def prepare_example
  "Hello, World!"
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
qed-2.6.3 spec/helpers/advice.rb
qed-2.6.2 spec/helpers/advice.rb
qed-2.6.1 qed/helpers/advice.rb
qed-2.6.0 qed/helpers/advice.rb
qed-2.5.1 qed/helpers/advice.rb
qed-2.5.0 qed/helpers/advice.rb
qed-2.4.0 qed/helpers/advice.rb
qed-2.3.0 demo/helpers/advice.rb
qed-2.2.2 demo/helpers/advice.rb
qed-2.2.1 demo/helpers/advice.rb
qed-2.2.0 demo/helpers/advice.rb