Sha256: 63be8be56a93b0202326b631c7547e1c231a53b8fbbac7540ef5d48e78293a56
Contents?: true
Size: 1.65 KB
Versions: 3
Compression:
Stored size: 1.65 KB
Contents
require 'spec/spec_helper' require 'rubygems' require 'rake' require 'fileutils' 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 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 ENV['TAZA_ENV'] = nil run_generator('taza', [APP_ROOT], generator_sources) load @spec_helper ENV['TAZA_ENV'].should eql("isolation") end it "spec helper should not override the TAZA_ENV variable if was provided" do ENV['TAZA_ENV'] = 'orange pie? is there such a thing?' run_generator('taza', [APP_ROOT], generator_sources) load @spec_helper ENV['TAZA_ENV'].should eql('orange pie? is there such a thing?') end it "should generate a console script" do run_generator('taza', [APP_ROOT], generator_sources) File.exists?(File.join(APP_ROOT,'script','console')).should be_true end it "should generate a windows console script" do run_generator('taza', [APP_ROOT], generator_sources) File.exists?(File.join(APP_ROOT,'script','console.cmd')).should be_true end end
Version data entries
3 entries across 3 versions & 3 rubygems
Version | Path |
---|---|
makevoid-taza-0.8.6 | spec/project_generator_spec.rb |
scudco-taza-0.8.7 | spec/project_generator_spec.rb |
taza-0.8.7 | spec/project_generator_spec.rb |