Sha256: 411dad9bd840491b94e5097f44308da69813a6be02373770cb0a4e41a7cdc547

Contents?: true

Size: 927 Bytes

Versions: 2

Compression:

Stored size: 927 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
require 'heredoc_unindent'
require 'scaffolder/test/helpers'
require 'genomer-plugin-view'
require 'genomer-plugin-view/gff_record_helper'

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

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

  include Scaffolder::Test
  Scaffolder::Test::Annotation.send(:include, GenomerPluginView::GffRecordHelper)

  def gene(opts = Hash.new)
    default = {
      :seqname    => 'seq1',
      :start      => 1,
      :end        => 3,
      :feature    => 'gene',
      :attributes => Hash.new}
    Annotation.new(default.merge(opts)).to_gff3_record
  end

  def cds(opts = Hash.new)
    gene({:feature => 'CDS'}.merge(opts))
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
genomer-plugin-view-0.0.3 spec/spec_helper.rb
genomer-plugin-view-0.0.2 spec/spec_helper.rb