module Skellington describe CLI do let :subject do described_class.new end it 'generates a view' do subject.generate 'dummy-app' expect('dummy_app/views/index.erb').to have_content ( """ <%= @content %> """ ) end it 'has a 404 page' do subject.generate 'dummy-app' expect('dummy_app/views/oops.erb').to have_content ( """