Sha256: fbc05110be1150989ffd93053a32e40cd0da07c22b13ed5b6077d7af2a5f095b
Contents?: true
Size: 755 Bytes
Versions: 3
Compression:
Stored size: 755 Bytes
Contents
require 'bbq' require 'bbq/session' require 'active_support/test_case' require 'test/unit' require 'test/unit/assertions' module Bbq class TestCase < ActiveSupport::TestCase class << self alias :scenario :test alias :background :setup end alias :background :setup teardown do Bbq::Session.pool.release end end # test/unit specific methods for test_user 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bbq-0.2.1 | lib/bbq/test_unit.rb |
bbq-0.2.0 | lib/bbq/test_unit.rb |
bbq-0.1.0 | lib/bbq/test_unit.rb |