Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add spec for Virtus::TypeLookup.extended

  • Loading branch information...
commit 721d57894295b0140b6f058cff483c14ffc0558d 1 parent 9fe3f5e
Piotr Solnica authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 spec/unit/virtus/type_lookup/class_methods/extended_spec.rb
7 spec/unit/virtus/type_lookup/class_methods/extended_spec.rb
View
@@ -1,5 +1,10 @@
require 'spec_helper'
describe Virtus::TypeLookup, '.extended' do
- it 'should have spec'
+ let(:type) { Class.new { extend Virtus::TypeLookup } }
+
+ it 'sets type_lookup_catch ivar' do
+ type.instance_variable_get('@type_lookup_cache').should eql({})
+ end
end
+
Please sign in to comment.
Something went wrong with that request. Please try again.