Sha256: 3f84b9392d8a3e91655d36d70215f5928c6ac7495e8672f797d031f51cef1b98

Contents?: true

Size: 767 Bytes

Versions: 1

Compression:

Stored size: 767 Bytes

Contents

require_relative "../spec_helper"
require_relative "../../lib/vendorise"

describe "vendorise" do
  it "adds a rake task to run git subtree", :clear_mocks do
    expect_any_instance_of(Rake::FileUtilsExt).to receive(:sh).with("git subtree add --prefix vendor/gems/sinatra git@github.com:sinatra/sinatra.git master --squash")
    Rake.application.invoke_task "vendorise:gem[git@github.com:sinatra/sinatra.git]"
  end

  it "uses the (optional) second argument to select the branch", :clear_mocks do
    expect_any_instance_of(Rake::FileUtilsExt).to receive(:sh).with("git subtree add --prefix vendor/gems/sinatra git@github.com:sinatra/sinatra.git 1.3.x --squash")
    Rake.application.invoke_task "vendorise:gem[git@github.com:sinatra/sinatra.git, 1.3.x]"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vendorise-0.3.0 spec/lib/vendorise_spec.rb