Browse files

moving towards rails 3

  • Loading branch information...
1 parent 8aae967 commit 3724c8029260b1096c713bae49871829e9f41a39 @ludicast ludicast committed Sep 27, 2010
Showing with 13 additions and 7 deletions.
  1. +4 −3 Rakefile
  2. +1 −0 lib/yaml_db.rb
  3. +7 −4 spec/base.rb
  4. +1 −0 spec/yaml_load_spec.rb
View
7 Rakefile
@@ -20,9 +20,10 @@ rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
-desc "Run all specs"
-Spec::Rake::SpecTask.new('spec') do |t|
- t.spec_files = FileList['spec/*_spec.rb']
+require 'spec/rake/spectask'
+Spec::Rake::SpecTask.new(:spec) do |spec|
+ spec.libs << 'lib' << 'spec'
+ spec.spec_files = FileList['spec/*_spec.rb']
end
task :default => :spec
View
1 lib/yaml_db.rb
@@ -2,6 +2,7 @@
require 'yaml'
require 'active_record'
require 'serialization_helper'
+require 'active_support/core_ext/kernel/reporting'
module YamlDb
module Helper
View
11 spec/base.rb
@@ -1,6 +1,9 @@
-require 'rubygems'
+$LOAD_PATH.unshift(File.dirname(__FILE__))
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'spec'
-
-$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib')
+require 'spec/autorun'
require 'yaml_db'
-require 'serialization_helper'
+
+Spec::Runner.configure do |config|
+
+end
View
1 spec/yaml_load_spec.rb
@@ -1,4 +1,5 @@
require File.dirname(__FILE__) + '/base'
+require 'active_support/core_ext/kernel/debugger'
describe YamlDb::Load do
before do

0 comments on commit 3724c80

Please sign in to comment.