From 27cb7d82e63f00e947b81953e19e153575d402ad Mon Sep 17 00:00:00 2001 From: Francis Irving Date: Wed, 20 Oct 2010 16:20:44 +0100 Subject: Show more appropriate info about users/bodies everywhere in JSON. --- spec/controllers/track_controller_spec.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'spec/controllers/track_controller_spec.rb') diff --git a/spec/controllers/track_controller_spec.rb b/spec/controllers/track_controller_spec.rb index eb0f632c4..13c3d4716 100644 --- a/spec/controllers/track_controller_spec.rb +++ b/spec/controllers/track_controller_spec.rb @@ -128,17 +128,17 @@ describe TrackController, "when viewing JSON version of a track feed" do a[1]['id'].should == info_request_events(:useless_incoming_message_event).id a[2]['id'].should == info_request_events(:useless_outgoing_message_event).id - a[0]['info_request'].should == 'why_do_you_have_such_a_fancy_dog' - a[1]['info_request'].should == 'why_do_you_have_such_a_fancy_dog' - a[2]['info_request'].should == 'why_do_you_have_such_a_fancy_dog' + a[0]['info_request']['url_title'].should == 'why_do_you_have_such_a_fancy_dog' + a[1]['info_request']['url_title'].should == 'why_do_you_have_such_a_fancy_dog' + a[2]['info_request']['url_title'].should == 'why_do_you_have_such_a_fancy_dog' - a[0]['public_body'].should == 'tgq' - a[1]['public_body'].should == 'tgq' - a[2]['public_body'].should == 'tgq' + a[0]['public_body']['url_name'].should == 'tgq' + a[1]['public_body']['url_name'].should == 'tgq' + a[2]['public_body']['url_name'].should == 'tgq' - a[0]['user'].should == 'bob_smith' - a[1]['user'].should == 'bob_smith' - a[2]['user'].should == 'bob_smith' + a[0]['user']['url_name'].should == 'bob_smith' + a[1]['user']['url_name'].should == 'bob_smith' + a[2]['user']['url_name'].should == 'bob_smith' a[0]['event_type'].should == 'comment' a[1]['event_type'].should == 'response' -- cgit v1.2.3