Sha256: 83ef835cfe2f30c5f6b28853cdce3d7c6bc3b3cd918b9c8f34372524cac51dd5

Contents?: true

Size: 1.12 KB

Versions: 2

Compression:

Stored size: 1.12 KB

Contents

require "codeclimate-test-reporter"
CodeClimate::TestReporter.start

require 'given_filesystem/spec_helpers'

require_relative "../../lib/inqlude"

require "nokogiri"
require "open-uri"

def test_data_path file_name
  File.expand_path(File.join('../../data/', file_name), __FILE__)
end

def stubs_path(context)
  File.expand_path(File.join('../../stubs/', context), __FILE__)
end

def create_manifest name, release_date, version
  m = ManifestRelease.new
  m.name = name
  m.version = version
  m.release_date = release_date
  m.description = "#{name} is a nice library."
  m
end

def create_generic_manifest name
  m = ManifestGeneric.new
  m.name = name
  m.description = "#{name} is a nice library."
  m
end

shared_context "manifest_files" do
  let(:settings) do
    s = Settings.new
    s.manifest_path = File.expand_path('spec/data/manifests')
    s.offline = true
    s
  end

  let(:awesomelib_manifest_file) do
    "awesomelib/awesomelib.2013-09-08.manifest"
  end

  let(:newlib_manifest_file) do
    "newlib/newlib.manifest"
  end

  let(:proprietarylib_manifest_file) do
    "proprietarylib/proprietarylib.2013-12-22.manifest"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
inqlude-0.10.0 spec/unit/spec_helper.rb
inqlude-0.9.0 spec/unit/spec_helper.rb