spec/page_generator_spec.rb in scudco-taza-0.8.4 vs spec/page_generator_spec.rb in scudco-taza-0.8.5
- old
+ new
@@ -1,9 +1,9 @@
require 'spec/spec_helper'
require 'rubygems'
require 'fileutils'
-require 'taza'
+require 'taza/page'
describe "Page Generation" do
include RubiGen::GeneratorTestHelper
include Helpers::Generator
include Helpers::Taza
@@ -32,10 +32,10 @@
lambda { run_generator('page', [@page_name,"NoSuchSite"], generator_sources) }.should raise_error
end
it "should generate a page spec that can be required" do
run_generator('page', [@page_name,@site_class.to_s], generator_sources)
- page_functional_spec = File.join(PROJECT_FOLDER,'spec','functional',@site_class.to_s.underscore,'check_out_page_spec.rb')
+ page_functional_spec = File.join(PROJECT_FOLDER,'spec','isolation',@site_class.to_s.underscore,'check_out_page_spec.rb')
system("ruby -c #{page_functional_spec} > #{null_device}").should be_true
end
it "should be able to access the generated page from the site" do
run_generator('page', [@page_name,@site_class.to_s], generator_sources)