docbrown/spec/requests/notifications_spec.rb
Ben Halpern 92a541a517
Add a couple specs for notifications and pages (#522)
* Add a couple specs

* Remove stream VCR from notifications_spec

* Add github readme spec

* Add notifications count specs

* Add guards in notifications controller

* Fix test

* Fix test
2018-06-29 14:14:36 -04:00

20 lines
444 B
Ruby

require "rails_helper"
# vcr_option = {
# cassette_name: "getstream-index",
# allow_playback_repeats: "true",
# }
RSpec.describe "NotificationsIndex", type: :request do
let(:user) { create(:user) }
describe "GET logged-in notifications index" do
before do
sign_in user
end
it "renders page with proper sidebar" do
get "/notifications"
expect(response.body).to include("Notifications")
end
end
end