Sha256: dbd9cfe96d845b5c8d426de7590bda411e03cbbf16aa611e2d1645f968101599

Contents?: true

Size: 888 Bytes

Versions: 2

Compression:

Stored size: 888 Bytes

Contents

require "rake"

desc "Runs the Rspec suite"
task(:default) do
  run_suite
end

desc "Runs the Rspec suite"
task(:spec) do
  run_suite
end

def run_suite
  dir = File.dirname(__FILE__)
  system("ruby #{dir}/spec/spec_suite.rb") || raise("Spec Suite failed")
end

begin
  require 'jeweler'
  Jeweler::Tasks.new do |s|
    s.name = "webrat-rspec-rails"
    s.summary = "Webrat + rspec/rails integration"
    s.email = "brian@pivotallabs.com"
    s.homepage = "http://pivotallabs.com"
    s.description = "Webrat + rspec/rails integration"
    s.authors = ["Brian Takita"]
    s.files = FileList[
      '[A-Z]*',
      '*.rb',
      'lib/**/*.rb',
      'spec/**/*.rb'
    ].to_a
    s.test_files = Dir.glob('spec/*_spec.rb')
    s.has_rdoc = true
  end
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
pivotal-webrat-rspec-rails-0.1.1 Rakefile
webrat-rspec-rails-0.1.1 Rakefile