Sha256: 36facc32fa03e73b8bb27d2422992f3353a7ff876d1b126ea3bf35b86eb262d7

Contents?: true

Size: 553 Bytes

Versions: 2

Compression:

Stored size: 553 Bytes

Contents

require 'spec_helper'
require 'tmbundle'
require 'tmbundle/bundle_name'

describe TMBundle::BundleName do
  endings = ['-tmbundle', '.tmbundle', '']

  endings.each do |ending|
    context "ending in #{ending.inspect}" do
      subject(:name) { described_class.new("davidrios/jade#{ending}") }
      its(:name)         { should eq("davidrios/jade#{ending}") }
      its(:install_name) { should eq('jade.tmbundle') }
      its(:git_url)      { should eq("https://github.com/davidrios/jade#{ending.empty? ? '.tmbundle' : ending}.git") }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tmbundle-manager-0.1.3 spec/tmbundle/bundle_name_spec.rb
tmbundle-manager-0.1.2 spec/tmbundle/bundle_name_spec.rb