This passes on my machine. That said, it's a pretty crappy test. (Not  
stepping on any toes -- I wrote it.) It should be rewritten to use  
assert_xml_select from test_helper. That would make it less brittle.

On Mar 1, 2007, at 9:21 PM, James Kebinger wrote:

> Hi All, I'm seeing a failure in the unit tests, and wanted to make  
> sure its not something funky in my environment. Is anyone seeing this:
>
>   1) Failure:
> test_creates_new_context(ContextXmlApiTest)
>     [./test/integration/../test_helper.rb:81:in  
> `assert_response_and_body_matches'
>      ./test/integration/context_xml_api_test.rb:54:in  
> `test_creates_new_context'
>      /Users/jkk/projects/trackstrunk/tracks/config/../vendor/rails/ 
> actionpack/lib/action_controller/integration.rb:453:in `run']:
> <"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<context>\n  <created- 
> at type=\"datetime\">2007-03-02T02:16:37Z</created-at>\n  <hide  
> type=\"boolean\">false</hide>\n  <id type=\"integer\">12</id>\n   
> <name>@newcontext</name>\n  <position type=\"integer\">3</position> 
> \n  <updated-at type=\"datetime\">2007-03-02T02:16:37Z</updated-at> 
> \n</context>\n"> expected to be =~
> </^<\?xml version="1.0" encoding="UTF-8"\?>\n<context>\n  <created- 
> at type=\"datetime\">\d{4}+-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z<\/ 
> created-at>\n  <hide type="integer">0<\/hide>\n  <id type="integer"> 
> \d+<\/id>\n  <name>@newcontext<\/name>\n  <position  
> type="integer">3<\/position>\n  <updated-at type=\"datetime\">\d{4} 
> +-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z<\/updated-at>\n<\/context>\n$/>.
> _______________________________________________
> Tracks-discuss mailing list
> [email protected]
> http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss

_______________________________________________
Tracks-discuss mailing list
[email protected]
http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss

Reply via email to