Sha256: fd70a28ded42cbcb5d00b9692c73cdfc7578e4d28db6bd34eb48bfe6761d41f9
Contents?: true
Size: 733 Bytes
Versions: 7
Compression:
Stored size: 733 Bytes
Contents
require 'rubygems' require 'test/unit' require 'spec' require 'spec/interop/test' $:.unshift File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')) require 'markaby' require 'markaby/kernel_method' require 'markaby/rails' module MarkabyTestHelpers def link_to(obj) %{<a href="">#{obj}</a>} end def pluralize(string) string + "s" end module_function :link_to, :pluralize end module TestHelpers def assert_exception(exclass, exmsg, *mab_args, &block) begin mab(*mab_args, &block) rescue Exception => e assert_equal exclass, e.class assert_match /#{exmsg}/, e.message end end end module Test module Unit class TestCase include TestHelpers end end end
Version data entries
7 entries across 7 versions & 2 rubygems