spec/tekeya/entity_spec.rb in tekeya-0.0.9 vs spec/tekeya/entity_spec.rb in tekeya-0.0.10
- old
+ new
@@ -100,22 +100,26 @@
end
describe "retrieval" do
before :each do
@user3 = Fabricate(:user)
+ @company = Fabricate(:company)
+
@user.track(@user2)
@user.block(@user3)
@user.join(@group)
@user2.join(@group)
@user3.join(@group)
+ @company.track(@user2)
end
it "should return tracked entities" do
@user.tracking.include?(@user2).should == true
end
it "should return trackers" do
@user2.trackers.include?(@user).should == true
+ @user2.trackers.include?(@company).should == true
end
it "should return blocked entities" do
@user.blocked.include?(@user3).should == true
end
\ No newline at end of file