diff --git a/config/sample_application.yml b/config/sample_application.yml index 59f4908ac..b4b9e503e 100644 --- a/config/sample_application.yml +++ b/config/sample_application.yml @@ -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==" diff --git a/public/ahrefs_1f6d9c5eee7265ac24482a2d70a1bf091346f16d6f5e2e4c9c934af6ebf9d431 b/public/ahrefs_1f6d9c5eee7265ac24482a2d70a1bf091346f16d6f5e2e4c9c934af6ebf9d431 new file mode 100644 index 000000000..156b26461 --- /dev/null +++ b/public/ahrefs_1f6d9c5eee7265ac24482a2d70a1bf091346f16d6f5e2e4c9c934af6ebf9d431 @@ -0,0 +1 @@ +ahrefs-site-verification_1f6d9c5eee7265ac24482a2d70a1bf091346f16d6f5e2e4c9c934af6ebf9d431 \ No newline at end of file diff --git a/spec/requests/chat_channels_spec.rb b/spec/requests/chat_channels_spec.rb index f2812304e..c292bcf8b 100644 --- a/spec/requests/chat_channels_spec.rb +++ b/spec/requests/chat_channels_spec.rb @@ -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