spec/project_generator_spec.rb in taza-0.8.0 vs spec/project_generator_spec.rb in taza-0.8.2

- old
+ new

@@ -1,17 +1,17 @@ require 'spec/spec_helper' require 'rubygems' require 'rake' require 'fileutils' require 'taza' -require 'vendor/gems/gems/rubigen-1.3.2/test/test_generator_helper' describe "Project Generator" do include RubiGen::GeneratorTestHelper before :all do @spec_helper = File.join(TMP_ROOT,PROJECT_NAME,'spec','spec_helper.rb') + @rakefile = File.join(TMP_ROOT,PROJECT_NAME,'rakefile') end before :each do bare_setup end @@ -19,9 +19,14 @@ after :each do bare_teardown end it "should generate a spec helper that can be required" do + run_generator('taza', [APP_ROOT], generator_sources) + system("ruby -c #{@spec_helper} > #{null_device}").should be_true + end + + it "should generate a rakefile that can be required" do run_generator('taza', [APP_ROOT], generator_sources) system("ruby -c #{@spec_helper} > #{null_device}").should be_true end it "spec helper should set the TAZA_ENV variable if it is not provided" do