Sha256: ce8e8e49fe1b491fbde88a2e6767763667779e75263aa0575774e6d2fea8b435

Contents?: true

Size: 908 Bytes

Versions: 6

Compression:

Stored size: 908 Bytes

Contents

module Skellington
  describe CLI do
    let :subject do
      described_class.new
    end

    it 'generates a Rakefile' do
      subject.generate 'dummy-app'
      expect('dummy_app/Rakefile').to have_content (
      """
      require File.join(File.dirname(__FILE__), 'lib/dummy_app.rb')

      unless ENV['RACK_ENV'] == 'production'
        require 'rspec/core/rake_task'
        require 'coveralls/rake/task'
        require 'jasmine'
        load 'jasmine/tasks/jasmine.rake'

        RSpec::Core::RakeTask.new
        Coveralls::RakeTask.new

        task :default => [:spec, 'jasmine:ci', 'coveralls:push']
      end

      namespace :run do
        desc 'start app'
        task :app do
          sh 'rackup -o 0.0.0.0'
        end

        desc 'clean-up and run compass'
        task :sass do
          sh 'compass clean && compass watch'
        end
      end
      """
      )
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
skellington-0.8.9 spec/sinatra/root_files/rakefile_spec.rb
skellington-0.8.8 spec/sinatra/root_files/rakefile_spec.rb
skellington-0.8.7 spec/sinatra/root_files/rakefile_spec.rb
skellington-0.8.6 spec/sinatra/root_files/rakefile_spec.rb
skellington-0.8.5 spec/sinatra/root_files/rakefile_spec.rb
skellington-0.8.4 spec/sinatra/root_files/rakefile_spec.rb