Permalink
Browse files

Add spec for Virtus::Attribute::Collection#member_type

  • Loading branch information...
1 parent aaa9156 commit 9ded7e42466c0e923a51f60458c53c617508fe6e @solnic committed Mar 14, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 spec/unit/virtus/attribute/collection/member_type_spec.rb
@@ -1,5 +1,9 @@
require 'spec_helper'
describe Virtus::Attribute::Collection, '#member_type' do
- it 'should have spec'
+ subject { object.member_type }
+
+ let(:object) { Virtus::Attribute::Set.new('stuff', :member_type => Integer) }
+
+ it { should be(Integer) }
end

0 comments on commit 9ded7e4

Please sign in to comment.