fix feeds tests

This commit is contained in:
Lee Lawlor 2014-03-26 23:42:42 -04:00
parent 374d2faa99
commit afdfca9fab

View File

@ -23,14 +23,14 @@ describe FeedController do
end end
it "should get feeds" do it "should get first feed" do
get :show, {id: @feed1.id, channel_id: @channel.id} get :show, {id: @feed1.id, channel_id: @channel.id, format: 'json'}
response.should be_successful response.should be_successful
response.body.should eq("{\"created_at\":\"2013-01-01T00:00:00+00:00\",\"entry_id\":1}" ) response.body.should eq("{\"created_at\":\"2013-01-01T00:00:00+00:00\",\"entry_id\":1}" )
end end
it "should get last feed" do it "should get last feed" do
get :show, {id: 'last', channel_id: @channel.id} get :show, {id: 'last', channel_id: @channel.id, format: 'json'}
response.should be_successful response.should be_successful
response.body.should eq("{\"created_at\":\"2013-01-01T00:00:00+00:00\",\"entry_id\":7}" ) response.body.should eq("{\"created_at\":\"2013-01-01T00:00:00+00:00\",\"entry_id\":7}" )
end end