From 091a0d10879ede08b94b3bdd4a5633568b5e2c53 Mon Sep 17 00:00:00 2001 From: Ben Halpern Date: Tue, 9 Jul 2019 22:10:50 -0400 Subject: [PATCH] Add basic pro accounts lander test (#3433) --- app/controllers/pro_accounts_controller.rb | 3 ++ app/helpers/application_helper.rb | 1 + app/views/pro_accounts/index.html.erb | 35 ++++++++++++++++++++++ config/routes.rb | 1 + spec/requests/pro_accounts_spec.rb | 10 +++++++ 5 files changed, 50 insertions(+) create mode 100644 app/controllers/pro_accounts_controller.rb create mode 100644 app/views/pro_accounts/index.html.erb create mode 100644 spec/requests/pro_accounts_spec.rb diff --git a/app/controllers/pro_accounts_controller.rb b/app/controllers/pro_accounts_controller.rb new file mode 100644 index 000000000..b88c882c4 --- /dev/null +++ b/app/controllers/pro_accounts_controller.rb @@ -0,0 +1,3 @@ +class ProAccountsController < ApplicationController + def index; end +end diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index c5d522aeb..3199dbde8 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -37,6 +37,7 @@ module ApplicationHelper classified_listings credits partnerships + pro_accounts ].include?(controller_name) end diff --git a/app/views/pro_accounts/index.html.erb b/app/views/pro_accounts/index.html.erb new file mode 100644 index 000000000..2ba4f9c8d --- /dev/null +++ b/app/views/pro_accounts/index.html.erb @@ -0,0 +1,35 @@ +<% title "Pro Account" %> + + + +
+

" /> Like a Pro

+

+ Pro is coming soon. This page is a work in progress. Since we're open source and transparently working on this, no sense in keeping it private eh? +

+

+ The copy on this page is a total draft. No judgment yet pls. ๐Ÿ˜„ +

+

๐Ÿš€ Access the Bleeding Edge

+

A pro membership gives you access to bleeding edge features that may some day scale to general availability. However, we would rather launch great new features to a core dedicated userbase that is most interested than to delay until things are scalable to the whole community. +

Current Bleeding Edge Features

+ +

๐Ÿ‘‹ Access the Exclusive Areas

+

A pro membership gives you access to small pro groups that don't necessarily scale. Your pro membership immediately gives you access to Editorial Groups in DEV Connect. These are chat channels dedicated to peer-to-peer review of technical blog posts to help you make the most of your DEV presence. +

๐Ÿค Access the Trust-based features

+

While pro memberships will not give you preferential treatment in the feed algorithm (that would be a no-no), you will get skin-in-the-game based access to trust-based features where we can place your posts more quickly and effectively in areas where spam would otherwise inhibit us. +

๐Ÿ™Œ Always Improving

+

Because this will be the landing destination for experimental and low scale features, you will always have the best and most interesting DEV features. We also plan to connect for exclusive deals on new and upcoming features on other platforms. + +

+

$25/mo

+

(or 5 credits/mo)

+
+
diff --git a/config/routes.rb b/config/routes.rb index 91eee7305..579cd02be 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -175,6 +175,7 @@ Rails.application.routes.draw do post "/chat_channels/block_chat" => "chat_channels#block_chat" get "/live/:username" => "twitch_live_streams#show" get "/partnerships/:option" => "partnerships#show" + get "/pro" => "pro_accounts#index" post "/pusher/auth" => "pusher#auth" diff --git a/spec/requests/pro_accounts_spec.rb b/spec/requests/pro_accounts_spec.rb new file mode 100644 index 000000000..69add8ce3 --- /dev/null +++ b/spec/requests/pro_accounts_spec.rb @@ -0,0 +1,10 @@ +require "rails_helper" + +RSpec.describe "PollVotes", type: :request do + describe "GET /pro" do + it "returns pro lander" do + get "/pro" + expect(response.body).to include("Like a Pro") + end + end +end