spec/project_creator_spec.rb in genit-0.3 vs spec/project_creator_spec.rb in genit-0.4

- old
+ new

@@ -11,20 +11,28 @@ after :all do clean_test_repository end - describe "Folder structure" do - + describe "Project folder" do + it "should create a project folder" do File.exist?('spec/project-name').should == true end it "should say it if it cannot create a project" do project = ProjectCreator.new('/root/project') $stdout.should_receive(:puts).with("Cannot create project...") project.create end + + it "should create a project file" do + File.exist?('spec/project-name/.genit').should == true + end + + end + + describe "Folder structure" do it "should create a news folder" do File.exist?('spec/project-name/news').should == true end