Skip to content

Commit

Permalink
change 'Your date says' to '$name says'
Browse files Browse the repository at this point in the history
  • Loading branch information
Chad Mazzola committed Oct 17, 2010
1 parent 4ce6815 commit 0197967
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/models/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def self.handle_incoming(phone_number, message_text)

def self.handle_texting_proxy(user, message)
if dating_user = user.date
Message.deliver(user.date.phone_number, "Your date says: #{message}")
Message.deliver(user.date.phone_number, "#{user.name} says: #{message}")
else
Message.deliver(user.phone_number, "You have no date for us to share that with. Reply with '#{COMMANDS[:new_date]}'.")
end
Expand Down
6 changes: 3 additions & 3 deletions features/sexting.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ Feature: Users texting each other through us

Scenario: Two users sext through us
Given the following two users are scheduled to date:
| 18004688487 |
| 16176060842 |
| 18004688487 | Alice |
| 16176060842 | Bob |
When "18004688487" texts instalover with "Say wanna meet in my bed instead?"
Then "16176060842" should get a text "Your date says: wanna meet in my bed instead?"
Then "16176060842" should get a text "Alice says: wanna meet in my bed instead?"

Scenario: Lonely dude sexts through us
Given "18004688487" is a confirmed user
Expand Down
4 changes: 2 additions & 2 deletions features/step_definitions/user_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
end

Given 'the following two users are scheduled to date:' do |table|
users = table.raw.map do |phone_number,|
Factory(:user, :phone_number => phone_number)
users = table.raw.map do |phone_number,name|
Factory(:user, :phone_number => phone_number, :name => name)
end
Factory(:scheduled_meetup,
:first_user => users.first,
Expand Down

0 comments on commit 0197967

Please sign in to comment.