module Skellington
describe CLI do
let :subject do
described_class.new
end
it 'generates a bootstrap template' do
subject.generate 'dummy_app'
expect('dummy_app/views/default.erb').to have_content (
"""
/erb.*'includes/header'/
<%= yield %>
"""
)
expect('dummy_app/views/includes/header.erb').to have_content (
"""
<%= @title %>
"""
)
expect('dummy_app/views/index.erb').to have_content (
"""
<%= @content %>
"""
)
end
end
end