Skip to content

Commit

Permalink
updated to rspec 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Brüll committed Nov 17, 2010
1 parent 927c1f3 commit f377b71
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions Rakefile
@@ -1,9 +1,9 @@
require 'rubygems'
gem 'rspec'
require 'spec'
gem 'rspec', '>= 2'
require 'rspec'
require "rake/rdoctask"
require 'rake/gempackagetask'
require 'spec/rake/spectask'
require 'rspec/core/rake_task'

task :default => :spec

Expand Down Expand Up @@ -35,15 +35,15 @@ Rake::RDocTask.new do |rdoc|
end

desc "Run all specs in spec directory"
Spec::Rake::SpecTask.new do |task|
task.spec_files = FileList["spec/lib/**/*_spec.rb"]
RSpec::Core::RakeTask.new do |task|
task.pattern = "spec/lib/**/*_spec.rb"
end

namespace :spec do

desc "Run all integration specs in spec/integration directory"
Spec::Rake::SpecTask.new(:integration) do |task|
task.spec_files = FileList["spec/integration/**/*_spec.rb"]
RSpec::Core::RakeTask.new(:integration) do |task|
task.pattern = "spec/integration/**/*_spec.rb"
end

end
6 changes: 3 additions & 3 deletions spec/spec_helper.rb
@@ -1,12 +1,12 @@
require 'rubygems'
gem 'rspec', '1.3.0'
require 'spec'
gem 'rspec', '>= 2'
require 'rspec'

require File.join(File.dirname(__FILE__), "..", "lib", "allegro_graph")
require File.join(File.dirname(__FILE__), "fake_transport_helper")

FakeTransport.enable!
Spec::Runner.configure do |configuration|
RSpec.configure do |configuration|
configuration.before :each do
FakeTransport.fake!
end
Expand Down

0 comments on commit f377b71

Please sign in to comment.