* 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
11 lines
233 B
Ruby
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
|