Sha256: 72549685fe03698e94ac009aff24c393775dcf8a13a5c1122a2c5f556dad111d

Contents?: true

Size: 631 Bytes

Versions: 7

Compression:

Stored size: 631 Bytes

Contents

begin
  require 'guard/jasmine/task'

  namespace :spec do
    desc "Run all javascript specs"
    task :javascripts do
      begin
        ::Guard::Jasmine::CLI.start([])

      rescue SystemExit => e
        case e.status
          when 1
            fail "Some specs have failed."
          when 2
            fail "The spec couldn't be run: #{e.message}."
        end
      end
    end
  end

  Rake::Task['spec'].enhance do
    Rake::Task['spec:javascripts'].invoke
  end

rescue LoadError
  namespace :spec do
    task :javascripts do
      puts "Guard is not available in this environment: #{Rails.env}."
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
raygun-0.0.17 app_prototype/lib/tasks/spec.rake
raygun-0.0.16 app_prototype/lib/tasks/spec.rake
raygun-0.0.15 app_prototype/lib/tasks/spec.rake
raygun-0.0.14 app_prototype/lib/tasks/spec.rake
raygun-0.0.13 app_prototype/lib/tasks/spec.rake
raygun-0.0.11 templates/_lib/tasks/spec.rake
raygun-0.0.10 templates/_lib/tasks/spec.rake