Sha256: 8d2697ce3bd559066fb6b3747d85050ffcd53e7dfff49cbe4805d16677ec90de

Contents?: true

Size: 299 Bytes

Versions: 5

Compression:

Stored size: 299 Bytes

Contents

Then /^the following should raise an? ([\w:]+):$/ do |error, step|
  lambda { steps step }.should raise_error(error.constantize)
end

Then /^the following should raise an? ([\w:]+) with "([^"]*)":$/ do |error, message, step|
  lambda { steps step }.should raise_error(error.constantize, message)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pickle-0.4.11 features/step_definitions/raise_error_steps.rb
pickle-0.4.10 features/step_definitions/raise_error_steps.rb
pickle-0.4.9 features/step_definitions/raise_error_steps.rb
pickle-0.4.8 features/step_definitions/raise_error_steps.rb
pickle-0.4.7 features/step_definitions/raise_error_steps.rb