Sha256: 22fd067df12611de484b95b78916faba601e941ff5ef86e10d7c7b1286ecb204

Contents?: true

Size: 805 Bytes

Versions: 10

Compression:

Stored size: 805 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

      task :run do
        sh 'bundle exec compass clean'
        sh 'bundle exec compass watch . &'
        sh 'bundle exec rackup'
      end
      """
      )
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
skellington-0.8.3 spec/sinatra/root_files/rakefile_spec.rb
skellington-0.8.2 spec/sinatra/root_files/rakefile_spec.rb
skellington-0.8.1 spec/sinatra/cli/rakefile_spec.rb
skellington-0.8.0 spec/sinatra/cli/rakefile_spec.rb
skellington-0.7.5 spec/cli/rakefile_spec.rb
skellington-0.7.4 spec/cli/rakefile_spec.rb
skellington-0.7.3 spec/cli/rakefile_spec.rb
skellington-0.7.2 spec/cli/rakefile_spec.rb
skellington-0.7.0 spec/cli/rakefile_spec.rb
skellington-0.6.2 spec/cli/rakefile_spec.rb