Sha256: f5878c0c0602319fc4629bfb494f40b1456eea451778898c97e9ba59aaf12f72

Contents?: true

Size: 845 Bytes

Versions: 12

Compression:

Stored size: 845 Bytes

Contents

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

    it 'generates a Guardfile' do
      subject.generate 'dummy_app'
      expect('dummy_app/Guardfile').to have_content (
      """
      guard :cucumber do
        /watch/
        /watch/

        /watch/
          /Dir/
        end
      end

      guard :jasmine do
        /watch/
        /watch/
        /watch/
        /watch/
      end

      guard :rspec, cmd: 'bundle exec rspec' do
        require 'guard/rspec/dsl'
        dsl = Guard::RSpec::Dsl.new(self)

        rspec = dsl.rspec
        watch(rspec.spec_helper) { rspec.spec_dir }
        watch(rspec.spec_support) { rspec.spec_dir }
        watch(rspec.spec_files)

        ruby = dsl.ruby
        dsl.watch_spec_files_for(ruby.lib_files)
      end
      """
      )
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

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