Sha256: a1d49997b5602ae1a2815adeeb1a58cf64a801e5d72a883fdfcfc087f7dee773

Contents?: true

Size: 670 Bytes

Versions: 2

Compression:

Stored size: 670 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'rspec'
require 'heredoc_unindent'
require 'genomer-plugin-summary'

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each do |f|
  require File.expand_path(f)
end

RSpec.configure do |config|
  config.mock_with :rr

  def sequence(seq, source=nil)
    s = mock!
    stub(s).sequence{ seq }
    stub(s).source{ source }
    stub(s).entry_type{ :sequence }
    s
  end

  def unresolved(seq)
    s = mock!
    stub(s).sequence{ seq }
    stub(s).entry_type{ :unresolved }
    s
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
genomer-plugin-summary-0.0.5 spec/spec_helper.rb
genomer-plugin-summary-0.0.4 spec/spec_helper.rb