module Skellington describe CLI do let :subject do described_class.new end it 'generates an app at a non-local path' do subject.generate 'subdir/some_app' expect('subdir/some_app/lib/some_app.rb').to have_content ( """ require 'sinatra/base' require 'tilt/erubis' require 'json' require 'yaml' require_relative 'some_app/helpers' require_relative 'some_app/racks' module SomeApp class App < Sinatra::Base helpers do include SomeApp::Helpers end get '/' do headers 'Vary' => 'Accept' respond_to do |wants| wants.html do @content = '