Sha256: 8c7704300d29043b73123e8eb14efabbb140465ca29737bf680daf6c86a969c2

Contents?: true

Size: 742 Bytes

Versions: 12

Compression:

Stored size: 742 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 'cucumber/rake/task'
        require 'coveralls/rake/task'
        require 'jasmine'
        load 'jasmine/tasks/jasmine.rake'

        Cucumber::Rake::Task.new
        RSpec::Core::RakeTask.new
        Coveralls::RakeTask.new

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
skellington-0.4.16 spec/cli/rakefile_spec.rb
skellington-0.4.15 spec/cli/rakefile_spec.rb
skellington-0.4.13 spec/cli/rakefile_spec.rb
skellington-0.4.11 spec/cli/rakefile_spec.rb
skellington-0.4.10 spec/cli/rakefile_spec.rb
skellington-0.4.9 spec/cli/rakefile_spec.rb
skellington-0.4.8 spec/cli/rakefile_spec.rb
skellington-0.4.6 spec/cli/rakefile_spec.rb
skellington-0.4.5 spec/cli/rakefile_spec.rb
skellington-0.4.4 spec/cli/rakefile_spec.rb
skellington-0.4.3 spec/cli/rakefile_spec.rb
skellington-0.4.2 spec/cli/rakefile_spec.rb