Modify sample_application.yml and write test (#456)

* Modify sample_application.yml and write test

* Add ahrefs verification
This commit is contained in:
Ben Halpern 2018-06-19 19:06:22 -04:00 committed by GitHub
parent d31e1b0594
commit 3a623993d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 4 deletions

View file

@ -137,7 +137,6 @@ TWILIO_ACCOUNT_SID: "REPLACEME"
TWILIO_VIDEO_API_KEY: "REPLACEME"
TWILIO_VIDEO_API_SECRET: "REPLACEME"
#For browser webpush notifications (webpush gem)
VAPID_PUBLIC_KEY: "REPLACEME"
VAPID_PRIVATE_KEY: "REPLACEME"
#For browser webpush notifications (webpush gem) (totally random base64 nums)
VAPID_PUBLIC_KEY: "dGhpcyBpcyBkZXYudG8gdGVzdCBkYXRh"
VAPID_PRIVATE_KEY: "VGhpcyBpcyBtb3JlIHRlc3QgZGF0YQ=="

View file

@ -0,0 +1 @@
ahrefs-site-verification_1f6d9c5eee7265ac24482a2d70a1bf091346f16d6f5e2e4c9c934af6ebf9d431

View file

@ -11,6 +11,18 @@ RSpec.describe "ChatChannels", type: :request do
end
describe "GET /connect" do
context "logged in" do
before do
get "/connect"
end
it "has proper content" do
expect(response.body).to include("DEV Connect is Beta ")
end
end
end
describe "GET /chat_channels/:id" do
context "when request is valid" do
before do
@ -69,4 +81,16 @@ RSpec.describe "ChatChannels", type: :request do
end
end
end
describe "POST /chat_channels/:id/open" do
it "returns success" do
post "/chat_channels/#{chat_channel.id}/open"
expect(response.body).to include("success")
end
it "marks chat_channel_membership as opened" do
post "/chat_channels/#{chat_channel.id}/open"
expect(user.chat_channel_memberships.last.has_unopened_messages).to eq(false)
end
end
end