Sha256: 431ded9b3e05956ecd2126ed1160ac12331358b77532713cddad001e841979cc

Contents?: true

Size: 612 Bytes

Versions: 16

Compression:

Stored size: 612 Bytes

Contents

require "spec_helper"

describe Bundler do
  before(:each) do
    env = Environment.new(root.join "config.yml")
    @bundler = Linner::Bundler.new(env)
  end

  it "should check failure when REPOSITORY is not exist" do
    clear
    expect(@bundler.check).to eq [false, "Bundles didn't exsit!"]
  end

  it "should check failure when jquery is not exist" do
    FileUtils.mkdir_p File.expand_path("~/.linner/bundles")
    expect(@bundler.check).to eq [false, "Bundle jquery v1.10.2 didn't match!"]
  end

  after(:each) do
    clear
  end

  def clear
    FileUtils.rm_rf File.expand_path("~/.linner")
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
linner-hc-1.0.0 spec/linner/bundler_spec.rb
linner-0.12.0 spec/linner/bundler_spec.rb
linner-0.11.6 spec/linner/bundler_spec.rb
linner-0.11.5 spec/linner/bundler_spec.rb
linner-0.11.4 spec/linner/bundler_spec.rb
linner-0.11.3 spec/linner/bundler_spec.rb
linner-0.11.2 spec/linner/bundler_spec.rb
linner-0.11.1 spec/linner/bundler_spec.rb
linner-0.11.0 spec/linner/bundler_spec.rb
linner-0.10.0 spec/linner/bundler_spec.rb
linner-0.9.1 spec/linner/bundler_spec.rb
linner-0.9.0 spec/linner/bundler_spec.rb
linner-0.8.7 spec/linner/bundler_spec.rb
linner-0.8.6 spec/linner/bundler_spec.rb
linner-0.8.5 spec/linner/bundler_spec.rb
linner-0.8.4 spec/linner/bundler_spec.rb