spec/generator_spec.rb in ore-0.2.3 vs spec/generator_spec.rb in ore-0.3.0
- old
+ new
@@ -74,11 +74,11 @@
it "should have a dummy homepage" do
subject['homepage'].should_not be_empty
end
it "should have 'ore' as a development dependency" do
- subject['development_dependencies'].should have_key('ore')
+ subject['development_dependencies'].should have_key('ore-core')
end
end
it "should add a *.gemspec file" do
@path.join('my-project.gemspec').should be_file
@@ -262,19 +262,27 @@
before(:all) do
generate!(name, :ore_tasks => true)
end
+ it "should omit 'ore-core' as a development dependency" do
+ @gemspec['development_dependencies'].should_not have_key('ore-core')
+ end
+
it "should add 'ore-tasks' as a development dependency" do
@gemspec['development_dependencies'].should have_key('ore-tasks')
end
end
context "ore tasks with bundler" do
let(:name) { 'bundled_ore_project' }
before(:all) do
generate!(name, :bundler => true, :ore_tasks => true)
+ end
+
+ it "should omit 'ore-core' as a development dependency" do
+ @gemspec['development_dependencies'].should_not have_key('ore-core')
end
it "should not add 'ore-tasks' as a development dependency" do
@gemspec['development_dependencies'].should_not have_key('ore-tasks')
end