Sha256: ac085cc64dd733e58e5909048e6efee2f97fde6d7a4e5d0910b799a418acd38c

Contents?: true

Size: 1015 Bytes

Versions: 11

Compression:

Stored size: 1015 Bytes

Contents

require 'spec_helper'

describe Package do

  before(:all) do
    @manifest_reader = ManifestReader.new
    @sql_reader = SqlReader.new
    @builder = Builder.new(@manifest_reader, @sql_reader)
    @packager = Package.new(@manifest_reader)
    @dbutil = DbUtility.new
  end

  it "package single migration project" do
    single_manifest=File.expand_path('spec/pg_migrate/input_manifests/single_manifest')
    single_manifest = File.join(single_manifest, '.')

    input_dir = nil
    target = Files.create :path => "target", :timestamp => false do
      input_dir = dir "input_single_manifest", :src => single_manifest do

      end
    end

    build_output_dir = File.join('target', 'output_single_manifest')
    package_output_dir = File.join('target', 'package_single_manifest')

    FileUtils.rm_rf(build_output_dir)


    # build first
    @builder.build(input_dir, build_output_dir)

    # then attempt a package
    @packager.package(build_output_dir, package_output_dir, "crazy_gem", "0.0.1")

  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pg_migrate-0.1.14 spec/pg_migrate/package_spec.rb
pg_migrate-0.1.13 spec/pg_migrate/package_spec.rb
pg_migrate-0.1.12 spec/pg_migrate/package_spec.rb
pg_migrate-0.1.7 spec/pg_migrate/package_spec.rb
pg_migrate-0.1.6 spec/pg_migrate/package_spec.rb
pg_migrate-0.1.5 spec/pg_migrate/package_spec.rb
pg_migrate-0.1.4 spec/pg_migrate/package_spec.rb
pg_migrate-0.1.3 spec/pg_migrate/package_spec.rb
pg_migrate-0.1.2 spec/pg_migrate/package_spec.rb
pg_migrate-0.1.1 spec/pg_migrate/package_spec.rb
pg_migrate-0.1.0 spec/pg_migrate/package_spec.rb