spec/generator_spec.rb in ore-0.9.0 vs spec/generator_spec.rb in ore-0.9.1
- old
+ new
@@ -244,10 +244,14 @@
it "should disable the yard template" do
@generator.disabled_templates.should include(:yard)
end
+ it "should add 'rdoc' as a development dependency" do
+ @gemspec.should have_development_dependency('rdoc')
+ end
+
it "should set @markup to :rdoc" do
@generator.instance_variable_get('@markup').should == :rdoc
end
it "should add 'html/' to the .gitignore file" do
@@ -292,9 +296,13 @@
@path.should have_file('.yardopts')
end
it "should add a '.document' file" do
@path.should have_file('.document')
+ end
+
+ it "should add 'yard' as a development dependency" do
+ @gemspec.should have_development_dependency('yard')
end
context ".document" do
it "should not include 'lib/**/*.rb'" do
document.should_not include('lib/**/*.rb')