Sha256: 389c29fb1e842f33b38b6beec3300fd9e62e42b0ad507a372bba3a7f9bd85502
Contents?: true
Size: 707 Bytes
Versions: 2
Compression:
Stored size: 707 Bytes
Contents
require 'bbq/core/session' require 'test/unit' require 'test/unit/assertions' require 'active_support/test_case' module Bbq class TestCase < ActiveSupport::TestCase class << self alias :scenario :test alias :background :setup end alias :background :setup teardown do Bbq::Core::Session.pool.release end end class TestUser include Test::Unit::Assertions def see!(*args) args.each do |arg| assert has_content?(arg), "Expecting to see \"#{arg}\", text not found." end end def not_see!(*args) args.each do |arg| assert has_no_content?(arg), "Found \"#{arg}\", which was unexpected." end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bbq-0.4.0 | lib/bbq/test_unit.rb |
bbq-0.3.0 | lib/bbq/test_unit.rb |