Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove pending case from determine_type spec

  • Loading branch information...
commit 6c0af33c1333201dd5a664ad9e104e21050f1327 1 parent 2d788d7
@solnic authored
View
8 spec/unit/virtus/attribute/class_methods/determine_type_spec.rb
@@ -3,7 +3,7 @@
describe Virtus::Attribute, '.determine_type' do
let(:object) { described_class }
- described_class.descendants.each do |attribute_class|
+ (described_class.descendants - [ Virtus::Attribute::Collection ]).each do |attribute_class|
context "with class #{attribute_class.inspect}" do
subject { object.determine_type(attribute_class) }
@@ -16,12 +16,6 @@
context "with #{attribute_class.inspect} and primitive #{primitive.inspect}" do
subject { object.determine_type(primitive) }
- before do
- if [Virtus::Attribute::Collection].include? attribute_class
- pending
- end
- end
-
it 'returns the corresponding attribute class' do
should be(attribute_class)
end
Please sign in to comment.
Something went wrong with that request. Please try again.