spec/sinatra/layout/views_spec.rb in skellington-0.8.9 vs spec/sinatra/layout/views_spec.rb in skellington-0.9.0.pre.rc1

- old
+ new

@@ -1,31 +1,33 @@ module Skellington describe CLI do - let :subject do - described_class.new - end + context 'sinatra' do + let :subject do + described_class.new + end - it 'generates a view' do - subject.generate 'dummy-app' + it 'generates a view' do + subject.generate 'dummy-app' - expect('dummy_app/views/index.erb').to have_content ( - """ - <%= @content %> - """ - ) - end + expect('dummy_app/views/index.erb').to have_content ( + """ + <%= @content %> + """ + ) + end - it 'has a 404 page' do - subject.generate 'dummy-app' + it 'has a 404 page' do + subject.generate 'dummy-app' - expect('dummy_app/views/oops.erb').to have_content ( - """ - <h1>404</h1> + expect('dummy_app/views/oops.erb').to have_content ( + """ + <h1>404</h1> - <h2>Nothing to see here</h2> + <h2>Nothing to see here</h2> - <a href='/'>Home</a> - """ - ) + <a href='/'>Home</a> + """ + ) + end end end end