spec/spec_helper.rb in dm-yaml-adapter-0.7 vs spec/spec_helper.rb in dm-yaml-adapter-1.0.0.rc3
- old
+ new
@@ -1,23 +1,5 @@
-require 'rubygems'
-require 'dm-core'
-require 'pathname'
-require Pathname(__FILE__).dirname.parent.expand_path + 'lib/dm-yaml-adapter'
+require 'dm-core/spec/lib/pending_helpers'
-class Post
- include DataMapper::Resource
-
- property :post_id, Serial
- property :title, String
-
- belongs_to :user
-end
-
-class User
- include DataMapper::Resource
-
- property :user_id, Serial
- property :name, String
- property :age, Integer
-
- has n, :posts
+Spec::Runner.configure do |config|
+ config.include(DataMapper::Spec::PendingHelpers)
end