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.60.17 origen_app_generators/spec/spec_helper.rb
origen-0.60.16 origen_app_generators/spec/spec_helper.rb
origen-0.60.14 origen_app_generators/spec/spec_helper.rb
origen-0.60.13 origen_app_generators/spec/spec_helper.rb
origen-0.60.12 origen_app_generators/spec/spec_helper.rb
origen-0.60.11 origen_app_generators/spec/spec_helper.rb
origen-0.60.10 origen_app_generators/spec/spec_helper.rb
origen-0.60.9 origen_app_generators/spec/spec_helper.rb
origen-0.60.8 origen_app_generators/spec/spec_helper.rb
origen-0.60.7 origen_app_generators/spec/spec_helper.rb
origen-0.60.6 origen_app_generators/spec/spec_helper.rb
origen-0.60.5 origen_app_generators/spec/spec_helper.rb
origen-0.60.4 origen_app_generators/spec/spec_helper.rb
origen-0.60.3 origen_app_generators/spec/spec_helper.rb
origen-0.60.2 origen_app_generators/spec/spec_helper.rb
origen-0.60.1 origen_app_generators/spec/spec_helper.rb
origen-0.60.0 origen_app_generators/spec/spec_helper.rb
origen-0.59.8 origen_app_generators/spec/spec_helper.rb
origen-0.59.7 origen_app_generators/spec/spec_helper.rb
origen-0.59.6 origen_app_generators/spec/spec_helper.rb