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