Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

Commit

Permalink
Use Test::Unit
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Dec 14, 2009
1 parent 44a3878 commit 503c31f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion features/step_definitions/error_steps.rb
Expand Up @@ -15,5 +15,9 @@
end

Then /^the Ruby error message should match '(.*)'$/ do |message|
@message.should =~ Regexp.new(message)
if defined?(Spec::Rails::Matchers)
@message.should =~ Regexp.new(message)
else
assert_match(Regexp.new(message), @message)
end
end

0 comments on commit 503c31f

Please sign in to comment.