Sha256: e4c4271f421626abcc777243b59510774ed18dda3d6e3a7680ddeafa5b657d94

Contents?: true

Size: 1.45 KB

Versions: 1

Compression:

Stored size: 1.45 KB

Contents

require 'rspec'
require 'model/models/base_model'
require 'model/models/inherited_model'
require 'model/models/authored_model'
require 'model/models/described_model'
require 'model/models/licensed_model'
require 'model/models/named_model'
require 'model/models/titled_model'
require 'classes/my_script'
require 'helpers/repositories'

require 'ronin/spec/database'
require 'ronin/spec/ui/output'

include Ronin

RSpec.configure do |spec|
  spec.before(:suite) do
    [
      BaseModel,
      InheritedModel,
      AuthoredModel,
      DescribedModel,
      LicensedModel,
      NamedModel,
      TitledModel,
      MyScript
    ].each(&:auto_migrate!)
  end

  spec.before(:suite) do
    Repository.create(
      :path => File.join(Helpers::Repositories::DIR,'local'),
      :name => 'local',
      :domain => Repository::LOCAL_DOMAIN
    )

    Repository.create(
      :path => File.join(Helpers::Repositories::DIR,'remote'),
      :uri => 'git@example.com/path/to/remote.git',
      :name => 'remote',
      :domain => 'example.com'
    )

    Repository.create(
      :path => File.join(Helpers::Repositories::DIR,'installed'),
      :uri => 'git@github.com/path/to/installed.git',
      :installed => true,
      :name => 'installed',
      :domain => 'github.com'
    )

    Repository.create(
      :path => File.join(Helpers::Repositories::DIR,'scripts'),
      :uri => 'git@github.com/path/to/scripts.git',
      :name => 'scripts',
      :domain => 'github.com'
    )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ronin-1.5.1 spec/spec_helper.rb