Permalink
Browse files

Remove old files

  • Loading branch information...
1 parent 4c7ef80 commit e6f878a75e34f01de10f988edb394d122263a753 Markus Schirp committed Jun 5, 2012
Showing with 7 additions and 8 deletions.
  1. +0 −2 lib/mapper/mongo.rb
  2. +0 −3 lib/mapper/virtus.rb
  3. +7 −3 spec/unit/mapper/attribute/class_methods/determine_type_spec.rb
View
@@ -1,2 +0,0 @@
-require 'mongo'
-require 'mapper/mapper/mongo'
View
@@ -1,3 +0,0 @@
-require 'virtus'
-require 'mapper'
-require 'mapper/mapper/virtus'
@@ -8,9 +8,7 @@
context 'with ::Object' do
let(:class_or_name) { ::Object }
- it 'should return Mapper::Attribute::Object' do
- should be(Mapper::Attribute::Object)
- end
+ it { should be(Mapper::Attribute::Object) }
end
context 'with undeterminable type' do
@@ -20,4 +18,10 @@
expect { subject }.to raise_error(ArgumentError,"unable to determine type from: #{class_or_name.inspect}")
end
end
+
+ context 'with :EmbeddedCollection' do
+ let(:class_or_name) { :EmbeddedCollection }
+
+ it { should be(Mapper::Attribute::EmbeddedCollection) }
+ end
end

0 comments on commit e6f878a

Please sign in to comment.