spec/generators/page_generator_spec.rb in taza-0.9.2.1 vs spec/generators/page_generator_spec.rb in taza-1.0

- old
+ new

@@ -13,25 +13,25 @@ let(:subject) { Taza::PageGenerator.new(['home', 'foo_site']) } let(:output) { capture(:stdout) { subject.page }} it 'creates a checkout_page.rb' do expect(output).to include('lib/sites/foo_site/pages/home_page.rb') - expect(File.exists?('lib/sites/foo_site/pages/home_page.rb')).to be_true + expect(File.exists?('lib/sites/foo_site/pages/home_page.rb')).to be true end it 'creates a checkout_page_spec.rb' do expect(output).to include('spec/isolation/home_page_spec.rb') - expect(File.exists?('spec/isolation/home_page_spec.rb')).to be_true + expect(File.exists?('spec/isolation/home_page_spec.rb')).to be true end it 'gives message if site does not exist' do bar_page = capture(:stdout) { Taza::PageGenerator.new(['checkout', 'bar_site']).page } expect(bar_page).to include("No such site bar_site exists") end it 'generates a page that can be required' do output page_spec = 'spec/isolation/home_page_spec.rb' - expect(system("ruby -c #{page_spec} > #{null_device}")).to be_true + expect(system("ruby -c #{page_spec} > #{null_device}")).to be true end xit "should be able to access the generated page from the site" do run_generator('page', [@page_name, @site_class.to_s], generator_sources) stub_settings