spec/page_generator_spec.rb in bret-watircraft-0.4.1 vs spec/page_generator_spec.rb in bret-watircraft-0.4.2

- old
+ new

@@ -8,11 +8,16 @@ include RubiGen::GeneratorTestHelper include Helpers::Generator include Helpers::Taza before :each do - generate_project - @site_class = generate_site('Gap') + site_name = "Gap#{Time.now.to_i}" + generate_project ["--site=#{site_name}"] + site_file_path = File.join(PROJECT_FOLDER,'lib',"#{site_name.underscore}.rb") + require site_file_path + "::#{site_name.camelize}::#{site_name.camelize}".constantize.any_instance.stubs(:base_path).returns(PROJECT_FOLDER) + @site_class = site_name.camelize.constantize + @site_name = @site_class.to_s.underscore end after :each do bare_teardown