spec/generators/partial_generator_spec.rb in taza-0.9.2.1 vs spec/generators/partial_generator_spec.rb in taza-1.0
- old
+ new
@@ -12,10 +12,10 @@
let(:subject) { Taza::PartialGenerator.new(['navigation', 'foo_site']) }
let(:output) { capture(:stdout) { subject.partial } }
it 'a navigation.rb' do
expect(output).to include('lib/sites/foo_site/pages/partials/navigation.rb')
- expect(File.exists?('lib/sites/foo_site/pages/partials/navigation.rb')).to be_true
+ expect(File.exists?('lib/sites/foo_site/pages/partials/navigation.rb')).to be true
end
it 'message if site does not exist' do
bar_page = capture(:stdout) { Taza::PartialGenerator.new(['navigation', 'bar_site']).partial }
expect(bar_page).to include("No such site bar_site exists")