forked from harrystech/prelaunchr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds integration test for campaign ended redirect
- Loading branch information
Showing
5 changed files
with
34 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<p class="thanks brandon">THANK YOU FOR PARTICIPATING<br>IN OUR PRE-LAUNCH.</p> | ||
<p class="compiling brandon">WE ARE COMPILING REWARDS RIGHT NOW AND WILL EMAIL<br/>COUPON CODES TO ALL RECIPIENTS IN THE NEXT DAY OR TWO</p> | ||
<p class="go-to brandon">In the meantime, head to <a href="http://www.harrys.com/">WWW.HARRYS.COM</a></p> | ||
<p class="again brandon">Thank You Again!</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div class="key"></div> | ||
<p class="byline brandon">Be the first to know</p> | ||
<%= form_for @user, :url => { :action => "create" } do |f| %> | ||
<%= f.text_field :email, :placeholder => "Enter Email", :class => "email brandon" %> | ||
<input class="submit brandon" name="commit" type="submit" value="Step Inside" /> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
require 'rails_helper' | ||
|
||
describe "users", type: :request do | ||
describe 'campaign ended' do | ||
before(:each) do | ||
Rails.application.config.ended = true | ||
end | ||
|
||
after(:each) do | ||
Rails.application.config.ended = false | ||
end | ||
|
||
it 'should display campaign ended message when campaign has ended' do | ||
get '/' | ||
expect(response).to render_template(:partial => "_campaign_ended") | ||
end | ||
end | ||
end |