spec/camaraderie/membership_spec.rb in camaraderie-0.2 vs spec/camaraderie/membership_spec.rb in camaraderie-0.2.1
- old
+ new
@@ -27,17 +27,17 @@
end
describe :admins do
subject { Membership.admins }
- it { should be_an_instance_of(relation_class(Membership)) }
+ it { should be_a_kind_of(ActiveRecord::Relation) }
it { should have(2).items }
end
describe :members do
subject { Membership.members }
- it { should be_an_instance_of(relation_class(Membership)) }
+ it { should be_a_kind_of(ActiveRecord::Relation) }
it { should have(1).item }
end
end
describe :Validations do