I use FactoryGril created two users, both with 3 events:
let (:user) {FactoryGirl.create :user,:with_events}
let (:user1) {FactoryGirl.create :user,:with_events}
But i get all events count 6, but i got 3,
Failure/Error: expect(json["events"].count).to eq 6
expected: 6
got: 3
(compared using ==)
Thanks!
Aucun commentaire:
Enregistrer un commentaire