Sha256: 5905a4f0672caa7d9425c5e025648bce2ea01006041c31960172e1749b4eaecc

Contents?: true

Size: 474 Bytes

Versions: 2

Compression:

Stored size: 474 Bytes

Contents

require 'minitest/autorun'

require 'rubyfox/sfsobject'

ENV['SF_DIR'] ||= File.join(File.dirname(__FILE__), 'vendor', 'smartfox')
Rubyfox::SFSObject.boot!(ENV['SF_DIR'] + "/lib")

class RubyfoxCase < Minitest::Spec
  class << self
    alias_method :test, :it
    alias_method :context, :describe
  end

  def assert_raises(exception, options={})
    pattern = options.fetch(:message)
    error = super(exception) { yield }
    assert_match pattern, error.message
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubyfox-sfsobject-0.8.0-java test/helper.rb
rubyfox-sfsobject-0.7.0-java test/helper.rb