Sha256: ab7729f4e20e56bc303a81d129c055c3f80a2d9f75df88326d16ff3f37a2942b

Contents?: true

Size: 811 Bytes

Versions: 20

Compression:

Stored size: 811 Bytes

Contents

require 'test_helper'

class TestGemspecHelper < Test::Unit::TestCase
  context "given a gemspec" do
    setup do
      @spec = build_spec
      @helper = Jeweler::GemSpecHelper.new(@spec, File.dirname(__FILE__))
    end

    should 'have sane gemspec path' do
      assert_equal "test/#{@spec.name}.gemspec", @helper.path
    end
  end

  context "#write" do
    setup do
      @spec = build_spec
      @helper = Jeweler::GemSpecHelper.new(@spec, File.dirname(__FILE__))
      FileUtils.rm_f(@helper.path)

      @helper.write
    end

    teardown do
      FileUtils.rm_f(@helper.path)
    end

    should "create gemspec file" do
      assert File.exists?(@helper.path)
    end

    should "make valid spec" do
      assert @helper.valid?
    end

    should "parse" do
      @helper.parse
    end
  end
end

Version data entries

20 entries across 20 versions & 8 rubygems

Version Path
dima-jeweler-1.2.0 test/test_gemspec_helper.rb
gohanlonllc-jeweler-0.11.1.20090513153819 test/test_gemspec_helper.rb
gohanlonllc-jeweler-1.0.0.20080513000000 test/test_gemspec_helper.rb
gohanlonllc-jeweler-1.0.0.20090513153819 test/test_gemspec_helper.rb
mcornick-jeweler-1.2.0 test/test_gemspec_helper.rb
monkeyhelper-jeweler-1.0.1 test/test_gemspec_helper.rb
namelessjon-jeweler-1.0.1 test/test_gemspec_helper.rb
pivotal-jeweler-1.0.1.1 test/test_gemspec_helper.rb
technicalpickles-jeweler-1.0.0 test/test_gemspec_helper.rb
technicalpickles-jeweler-1.0.1 test/test_gemspec_helper.rb
technicalpickles-jeweler-1.0.2 test/test_gemspec_helper.rb
technicalpickles-jeweler-1.1.0 test/test_gemspec_helper.rb
technicalpickles-jeweler-1.2.1 test/test_gemspec_helper.rb
jeweler-1.2.1 test/test_gemspec_helper.rb
jeweler-1.2.0 test/test_gemspec_helper.rb
jeweler-1.1.0 test/test_gemspec_helper.rb
jeweler-1.0.2 test/test_gemspec_helper.rb
jeweler-0.11.1 test/test_gemspec_helper.rb
jeweler-1.0.1 test/test_gemspec_helper.rb
jeweler-1.0.0 test/test_gemspec_helper.rb