fix feeds tests
This commit is contained in:
parent
374d2faa99
commit
afdfca9fab
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user