Permalink
Browse files

Print nothing when no response is returned

* bin/rets4r (RETS4R::CLI#login): don't print nil
  • Loading branch information...
josephholsten committed Aug 17, 2011
1 parent a2d6a48 commit b7c6823d3c7e62f73cc6cbb4991cb9828d460b2c
Showing with 4 additions and 4 deletions.
  1. +1 −1 bin/rets4r
  2. +3 −3 features/commandline.feature
View
@@ -42,7 +42,7 @@ module RETS4R
puts "We successfully logged into the RETS server!"
# Print the action URL results (if any)
- puts login_result.secondary_response
+ puts login_result.secondary_response || ''
client.logout
@@ -26,15 +26,15 @@ Feature: Command Line Tool
</RETS>
"""
- Scenario: parse
+ Scenario: Parse a saved XML response
When I run `rets4r parse search_compact.xml`
Then the output should contain:
"""
AGENTLIST_FULLNAME: Steve, LISTPRICE: 2, MLSNUM: 1
AGENTLIST_FULLNAME: Bill, LISTPRICE: 5, MLSNUM: 4
"""
- Scenario: Map
+ Scenario: Map a saved XML response onto reasonable keys
When I run `rets4r map search_compact.xml`
Then the output should contain:
"""
@@ -47,6 +47,6 @@ Feature: Command Line Tool
Then the output should contain:
"""
We successfully logged into the RETS server!
- nil
+
We just logged out of the server.
"""

0 comments on commit b7c6823

Please sign in to comment.