Sha256: b351f620cfa4766effbef79211d5277ef6ac22a2f99191d4414c379f946e693c

Contents?: true

Size: 690 Bytes

Versions: 8

Compression:

Stored size: 690 Bytes

Contents

begin
  require 'rspec/core/rake_task'
rescue LoadError
  # no spec tasks
else
  task :default => :spec

  desc 'Run ALL OF the specs'
  RSpec::Core::RakeTask.new(:spec) do |t|
    # t.ruby_opts = '-w'
    t.pattern = 'spec/finders/active_record_spec.rb' if ENV['DB'] and ENV['DB'] != 'sqlite3'
  end

  namespace :spec do
    desc "Run Rails specs"
    RSpec::Core::RakeTask.new(:rails) do |t|
      t.pattern = %w'spec/finders/active_record_spec.rb spec/view_helpers/action_view_spec.rb'
    end
  end
end

desc 'Run specs against both Rails 3.1 and Rails 3.0'
task :rails3 do |variable|
  system 'bundle exec rake spec && BUNDLE_GEMFILE=Gemfile.rails3.0 bundle exec rake spec:rails'
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
hobo_will_paginate-2.1.1 Rakefile
hobo_will_paginate-2.1.0 Rakefile
hobo-will_paginate-3.0.4.hobo Rakefile
will_paginate-3.0.4 Rakefile
will_paginate-3.0.3 Rakefile
will_paginate-3.0.2 Rakefile
will_paginate-3.0.1 Rakefile
will_paginate-3.0.0 Rakefile