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