spec/dsl/project_gemspec_spec.rb in maven-tools-1.0.6 vs spec/dsl/project_gemspec_spec.rb in maven-tools-1.0.7
- old
+ new
@@ -92,6 +92,13 @@
xml = ""
Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
xml.must_equal( XmlFile.read( 'extended.xml',
'gemspec_spec' ) )
end
+
+ it 'evals gemspec with unknown license' do
+ subject.new parent, :name => 'unknown_license.gemspec'
+ xml = ""
+ Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
+ xml.must_equal( XmlFile.read( 'unknown_license.xml', 'gemspec_spec') )
+ end
end