spec/generator_spec.rb in ore-0.6.0 vs spec/generator_spec.rb in ore-0.7.0
- old
+ new
@@ -73,12 +73,12 @@
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-core')
+ it "should have 'ore-tasks' as a development dependency" do
+ subject['development_dependencies'].should have_key('ore-tasks')
end
end
it "should add a *.gemspec file" do
@path.join('my-project.gemspec').should be_file
@@ -100,9 +100,29 @@
@path.join('ChangeLog.rdoc').should be_file
end
it "should add a LICENSE.txt file" do
@path.join('LICENSE.txt').should be_file
+ end
+ end
+
+ context "bin" do
+ let(:name) { 'script-project' }
+
+ before(:all) do
+ generate!(name, :bin => true)
+ end
+
+ it "should add a 'bin/' directory" do
+ @path.join('bin').should be_directory
+ end
+
+ it "should add a bin/script-project file" do
+ @path.join('bin',name).should be_file
+ end
+
+ it "should make the bin/script-project file executable" do
+ @path.join('bin',name).should be_executable
end
end
context "gem test" do
let(:name) { 'gem_test_project' }