aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/track_controller_spec.rb
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2010-10-20 16:20:44 +0100
committerFrancis Irving <francis@mysociety.org>2010-10-20 16:20:44 +0100
commit27cb7d82e63f00e947b81953e19e153575d402ad (patch)
treefd344b7abba12c381f0b4dfe311c5a19608d0728 /spec/controllers/track_controller_spec.rb
parent7b85b81d1076169a9b01c301545f0f9192540f97 (diff)
Show more appropriate info about users/bodies everywhere in JSON.
Diffstat (limited to 'spec/controllers/track_controller_spec.rb')
-rw-r--r--spec/controllers/track_controller_spec.rb18
1 files changed, 9 insertions, 9 deletions
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'