Sha256: d05a5387b88da48982e34a57ae45cc610982bf4a2d7e76a6c7d3bf48ec628223

Contents?: true

Size: 620 Bytes

Versions: 14

Compression:

Stored size: 620 Bytes

Contents

require "spec_helper"

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

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

  it "should check failure when jquery is not exist" do
    FileUtils.mkdir_p File.expand_path("~/.linner/bundles")
    @bundler.check.should == [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

14 entries across 14 versions & 1 rubygems

Version Path
linner-0.7.3 spec/linner/bundler_spec.rb
linner-0.7.2 spec/linner/bundler_spec.rb
linner-0.7.1 spec/linner/bundler_spec.rb
linner-0.7.0 spec/linner/bundler_spec.rb
linner-0.6.7 spec/linner/bundler_spec.rb
linner-0.6.6 spec/linner/bundler_spec.rb
linner-0.6.5 spec/linner/bundler_spec.rb
linner-0.6.4 spec/linner/bundler_spec.rb
linner-0.6.3 spec/linner/bundler_spec.rb
linner-0.6.2 spec/linner/bundler_spec.rb
linner-0.6.1 spec/linner/bundler_spec.rb
linner-0.6.0 spec/linner/bundler_spec.rb
linner-0.5.1 spec/linner/bundler_spec.rb
linner-0.5.0 spec/linner/bundler_spec.rb