Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Motivate people who have never filled out their profile
- Loading branch information
1 parent
ba6f44e
commit 444faaf
Showing
9 changed files
with
94 additions
and
5 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
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,13 @@ | ||
class ProfileAnnoyer | ||
@queue = :annoyer | ||
|
||
def self.perform(args_hash) | ||
user_id = args_hash["user_id"] | ||
user = User.find(user_id) | ||
|
||
if user.incomplete? | ||
user.tell("Hey you need to fill out your instalover profile! Go back and entre your phone number, or quit forever with 'safeword'.") | ||
QUEUE.enqueue_at(1.day.from_now, ProfileAnnoyer, :user_id => user.id) | ||
end | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Feature: Motivate people to use this service | ||
|
||
As of Nov 12, 2010: | ||
| total | no profile | asked for zero dates | asked for one date | asked for more than one date | have zero matches | | ||
| 109 | 49 | 81 | 11 | 17 | 59, 77, 111 | | ||
User 59 is looking for other but we have no others | ||
Advertise to sex-positive communities? | ||
User 77 is looking for 18-21 y/o women | ||
User 111 is looking for 18-20 y/o women | ||
Advertise to college freshmen? | ||
|
||
Scenario: Annoy the people who have never filled out their profile | ||
Given the day and time is "November 12, 2010 01:00 est" | ||
Given the following empty user exists: | ||
| phone number | secret code | | ||
| 18004688487 | tits | | ||
And the day and time is "November 18, 2010 01:00 est" | ||
Then "18004688487" should not get a text whose message includes "fill out" | ||
When it is 24 hours later | ||
And timed jobs are processed | ||
Then "18004688487" should get a text whose message includes "fill out" | ||
Given I clear the text message history | ||
When it is 24 hours later | ||
And timed jobs are processed | ||
Then "18004688487" should get a text whose message includes "fill out" | ||
|
||
When I go to the home page | ||
And I fill in "18004688487" as my phone number | ||
And I press the text me button | ||
And I fill in the secret code "tits" | ||
And I fill in the date of birth with "November 12, 1983" | ||
And I fill in my name as "Mike" | ||
And I check my gender as male | ||
And I fill in the minimum age with "21" | ||
And I fill in the maximum age with "34" | ||
And I check my desired gender as female | ||
And I submit my profile | ||
Then I see a welcome page | ||
|
||
Given I clear the text message history | ||
When it is 24 hours later | ||
And timed jobs are processed | ||
Then "18004688487" should not get a text whose message includes "fill out" | ||
|
||
@wip | ||
Scenario: Ask out those who have asked for one date on behalf of those who have asked out none |
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
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