Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Print nothing when no response is returned

* bin/rets4r (RETS4R::CLI#login): don't print nil
  • Loading branch information...
commit b7c6823d3c7e62f73cc6cbb4991cb9828d460b2c 1 parent a2d6a48
@josephholsten authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  bin/rets4r
  2. +3 −3 features/commandline.feature
View
2  bin/rets4r
@@ -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
View
6 features/commandline.feature
@@ -26,7 +26,7 @@ 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:
"""
@@ -34,7 +34,7 @@ Feature: Command Line Tool
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.
"""
Please sign in to comment.
Something went wrong with that request. Please try again.