Skip to content

Commit

Permalink
Support rspec 2 for development
Browse files Browse the repository at this point in the history
  • Loading branch information
Empact committed Aug 14, 2011
1 parent 0eab951 commit 67d0a74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
require 'rubygems'
require 'spec/rake/spectask'
require 'rspec/core/rake_task'

[:mysql, :mysql2, :postgresql].each do |adapter|
desc "Run specs for #{adapter} adapter"
Spec::Rake::SpecTask.new("spec:#{adapter.to_s}") do |t|
t.spec_files = FileList["spec/#{adapter}/*_spec.rb"]
RSpec::Core::RakeTask.new("spec:#{adapter.to_s}") do |spec|
spec.pattern = "spec/#{adapter}/*_spec.rb"
spec.rspec_opts = ['--backtrace']
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'rubygems'
require 'spec'
require 'rspec'
require 'geo_ruby'
gem 'activerecord', '=3.0.3'
require 'active_record'
Expand Down

0 comments on commit 67d0a74

Please sign in to comment.