Sha256: 693db95287c9ec098fb05b516e9a962b1cab16e850dc7744b44f27f672d911de

Contents?: true

Size: 1.33 KB

Versions: 216

Compression:

Stored size: 1.33 KB

Contents

$VERBOSE=nil  # Don't care about world writable dir warnings and the like

require 'pathname'
if File.exist? File.expand_path("../Gemfile", Pathname.new(__FILE__).realpath)
  require 'rubygems'
  require 'bundler/setup'
else
  # If running on windows, can't use Origen helpers 'till we load it...
  if RUBY_PLATFORM == 'i386-mingw32'
    `where origen`.split("\n").find do |match|
      match =~ /(.*)\\bin\\origen$/
    end
    origen_top = $1.gsub("\\", "/")
  else
    origen_top = `which origen`.strip.sub("/bin/origen", "")
  end

  $LOAD_PATH.unshift "#{origen_top}/lib"
end

require "origen"

require "rspec/legacy_formatters"
require "#{Origen.top}/spec/format/origen_formatter"

if RUBY_VERSION >= '2.0.0'
  require "byebug"
else
  require 'debugger'
end
require 'pry'

def load_target(target="default")
  Origen.target.switch_to target
  Origen.target.load!
end

RSpec.configure do |config|
  config.formatter = OrigenFormatter
  # rspec-expectations config goes here. You can use an alternate
  # assertion/expectation library such as wrong or the stdlib/minitest
  # assertions if you prefer.
  config.expect_with :rspec do |expectations|
    # Enable only the newer, non-monkey-patching expect syntax.
    # For more details, see:
    #   - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
    expectations.syntax = :should
  end
end

Version data entries

216 entries across 205 versions & 1 rubygems

Version Path
origen-0.42.2 templates/code_generators/spec_helper.rb
origen-0.42.2 origen_app_generators/spec/spec_helper.rb
origen-0.42.1 templates/code_generators/spec_helper.rb
origen-0.42.1 origen_app_generators/spec/spec_helper.rb
origen-0.42.0 templates/code_generators/spec_helper.rb
origen-0.42.0 origen_app_generators/spec/spec_helper.rb
origen-0.41.2 templates/code_generators/spec_helper.rb
origen-0.41.2 origen_app_generators/spec/spec_helper.rb
origen-0.41.1 templates/code_generators/spec_helper.rb
origen-0.41.1 origen_app_generators/spec/spec_helper.rb
origen-0.41.0 templates/code_generators/spec_helper.rb
origen-0.41.0 origen_app_generators/spec/spec_helper.rb
origen-0.40.2 templates/code_generators/spec_helper.rb
origen-0.40.2 origen_app_generators/spec/spec_helper.rb
origen-0.40.1 templates/code_generators/spec_helper.rb
origen-0.40.1 origen_app_generators/spec/spec_helper.rb
origen-0.40.0 templates/code_generators/spec_helper.rb
origen-0.40.0 origen_app_generators/spec/spec_helper.rb
origen-0.38.0 templates/code_generators/spec_helper.rb
origen-0.37.0 templates/code_generators/spec_helper.rb