Skip to content

Instantly share code, notes, and snippets.

@RudyOnRails
Created January 17, 2014 03:49
Show Gist options
  • Save RudyOnRails/8468117 to your computer and use it in GitHub Desktop.
Save RudyOnRails/8468117 to your computer and use it in GitHub Desktop.
pspec failure in 1.7.3
Failures:
1) Bxml::ClientApiLogger request logging should log a transaction id for the request before any other messages
Failure/Error: BRIX_API_LOGGER.debug_log.should include(expected_message)
expected "Account: Joe Smith: [CH-DEV/TestEE] - Server: Kevins-MacBook-Air.local - Process: 9477 - Transaction: 1389929961 - fake request start\n=======================================================================================================================================\n\nAccount: Joe Smith: [CH-DEV/TestEE] - Server: Kevins-MacBook-Air.local - Process: 9477 - Transaction: 1389929961 - Date & Time: 2014-01-17 03:39:21 AM - Event: Sending 'fake request' request\n-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n\n<?xml version=\"1.0\"?>\n<Tag1>\n <Login>Data has been redacted</Login>\n <Person>Data has been redacted</Person>\n <PersonInfo>\n <BirthDt>Data has been redacted</BirthDt>\n </PersonInfo>\n <SocSecNo>Data has been redacted</SocSecNo>\n </Tag1>\n" to include "Transaction: 1389929962"
Diff:
@@ -1,2 +1,16 @@
-Transaction: 1389929962
+Account: Joe Smith: [CH-DEV/TestEE] - Server: Kevins-MacBook-Air.local - Process: 9477 - Transaction: 1389929961 - fake request start
+=======================================================================================================================================
+
+Account: Joe Smith: [CH-DEV/TestEE] - Server: Kevins-MacBook-Air.local - Process: 9477 - Transaction: 1389929961 - Date & Time: 2014-01-17 03:39:21 AM - Event: Sending 'fake request' request
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+
+<?xml version="1.0"?>
+<Tag1>
+ <Login>Data has been redacted</Login>
+ <Person>Data has been redacted</Person>
+ <PersonInfo>
+ <BirthDt>Data has been redacted</BirthDt>
+ </PersonInfo>
+ <SocSecNo>Data has been redacted</SocSecNo>
+ </Tag1>
# ./spec/bxml/client/logger/client_api_logger_spec.rb:45:in `(root)'
Finished in 10 minutes 31 seconds
1468 examples, 1 failure, 1 pending
Failed examples:
rspec ./spec/bxml/client/logger/client_api_logger_spec.rb:42 # Bxml::ClientApiLogger request logging should log a transaction id for the request before any other messages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment