Sha256: cb6e6ac4de7a017d69b7e92abeca7a7ebd67fbf303591f8a68a407ab8afc37f3
Contents?: true
Size: 908 Bytes
Versions: 9
Compression:
Stored size: 908 Bytes
Contents
require 'test_helper' class TestGemspecHelper < Test::Unit::TestCase def setup Rake.application.instance_variable_set(:@rakefile, "Rakefile") end context "given a gemspec" do setup do @spec = build_spec @helper = Juwelier::GemSpecHelper.new(@spec, File.dirname(__FILE__)) end should 'have sane gemspec path' do assert_equal "test/juwelier/#{@spec.name}.gemspec", @helper.path end end context "#write" do setup do @spec = build_spec @helper = Juwelier::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
9 entries across 9 versions & 1 rubygems