Skip to content

Commit

Permalink
fix assert method in case of failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Sep 17, 2013
1 parent 83dd3f2 commit 3f221d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/view_helpers/view_example_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module ViewExampleGroup
include MiniTest::Assertions if defined? MiniTest

def assert(value, message)
message = message.call if message.respond_to?(:call)
raise message unless value
end

Expand Down

0 comments on commit 3f221d4

Please sign in to comment.