Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: koala-facebook
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 45 lines (31 sloc) 0.728 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
require 'rubygems'
require 'bundler/setup'

require 'bundler'

Bundler::GemHelper.install_tasks

begin

  require 'rspec'
  require "rspec/core/rake_task"

  desc "Run all examples"
  RSpec::Core::RakeTask.new(:spec) do |t|
    t.rspec_path = 'bin/rspec'
    t.rspec_opts = %w[--color]
    t.verbose = false
  end

  task :default => [:spec]

rescue
  puts 'Could not load Broadcast RSpec Rake tasks'
end

begin

  namespace :spec do

    task :cleanup do
      rm_rf 'coverage.data'
    end

    RSpec::Core::RakeTask.new :rcov do |t|
      t.rcov = true
      t.rcov_opts = %[-Ilib -Ispec --exclude "gems/*,features"]
      t.verbose = false
    end

  end

rescue
  puts 'Could not load Broadcast RSpec Rcov Rake tasks'
end
Something went wrong with that request. Please try again.