docbrown/spec/models/follow_spec.rb
Andy Zhao a1010201f2 Notifications part 2 (#1156)
* Remove stream and add new notification views

* Actually remove Stream

* Move followers query to async method

* Remove unused tests and fix query

* Try using without delay instead

* Add without delay and escape HTML

* Make all tests pending for now
2018-11-19 18:14:24 -05:00

11 lines
233 B
Ruby

require "rails_helper"
RSpec.describe Follow, type: :model do
let(:user) { create(:user) }
let(:user_2) { create(:user) }
it "follows user" do
user.follow(user_2)
expect(user.following?(user_2)).to eq(true)
end
end