Sha256: d7a22e88765175545d2b5073c62df87c1d8c4e12423bc3b6fd9e914f7b0fcb6e

Contents?: true

Size: 680 Bytes

Versions: 2

Compression:

Stored size: 680 Bytes

Contents

require 'active_support'
require 'test/unit'
require 'bbq/test_user'
require 'test/unit/assertions'

module Bbq

  class TestCase < ActiveSupport::TestCase
    class << self
      alias :scenario :test
      alias :background :setup
    end

    alias :background :setup
  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

2 entries across 2 versions & 1 rubygems

Version Path
bbq-0.0.2.beta.2 lib/bbq/test.rb
bbq-0.0.2.beta.1 lib/bbq/test.rb