dm-tags 0.9.7 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
data/spec/classes.rb DELETED
@@ -1,25 +0,0 @@
1
- class TaggedModel
2
- include DataMapper::Resource
3
- property :id, Integer, :serial => true
4
-
5
- has_tags_on :skills, :interests, :tags
6
- end
7
-
8
- class AnotherTaggedModel
9
- include DataMapper::Resource
10
- property :id, Integer, :serial => true
11
-
12
- has_tags_on :skills, :pets
13
- end
14
-
15
- class DefaultTaggedModel
16
- include DataMapper::Resource
17
- property :id, Integer, :serial => true
18
-
19
- has_tags
20
- end
21
-
22
- class UntaggedModel
23
- include DataMapper::Resource
24
- property :id, Integer, :serial => true
25
- end
data/spec/dm-setup.rb DELETED
@@ -1,2 +0,0 @@
1
- DataMapper.setup(:default, 'sqlite3::memory:')
2
- DataMapper.auto_migrate!
data/tasks/rspec.rake DELETED
@@ -1,21 +0,0 @@
1
- begin
2
- require 'spec'
3
- rescue LoadError
4
- require 'rubygems'
5
- require 'spec'
6
- end
7
- begin
8
- require 'spec/rake/spectask'
9
- rescue LoadError
10
- puts <<-EOS
11
- To use rspec for testing you must install rspec gem:
12
- gem install rspec
13
- EOS
14
- exit(0)
15
- end
16
-
17
- desc "Run the specs under spec/models"
18
- Spec::Rake::SpecTask.new do |t|
19
- t.spec_opts = ['--options', "spec/spec.opts"]
20
- t.spec_files = FileList['spec/**/*_spec.rb']
21
- end