Sha256: 38110e4a38412cc1a7a7bc43ef8629d096011c3591e922899cf57cac3d5dd22e

Contents?: true

Size: 583 Bytes

Versions: 2

Compression:

Stored size: 583 Bytes

Contents

# single spec setup
$LOAD_PATH.unshift File.join( File.dirname( File.expand_path( File.dirname( __FILE__ ) ) ),
                              'lib' )

gem 'minitest'
require 'minitest/autorun'

require 'cuba'
ENV["MT_NO_EXPECTATIONS"] = "true"

require 'mustard'

module Mustard
  class Failure < MiniTest::Assertion
    def initialize( *args )
      super
      begin
        raise
      rescue => e
        @result = e.backtrace.detect { |l| nil == ( l =~ /lib\/mustard/ || l =~ /spec\/spec_helper.rb/ ) }
      end
    end
    
    def backtrace
      [@result]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cuba-api-0.6.3 spec/spec_helper.rb
cuba-api-0.6.2 spec/spec_helper.rb