Spaces:
Build error
Build error
File size: 324 Bytes
def1299 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
require 'rails_helper'
RSpec.describe StatusesController, type: :controller do
describe "GET #index" do
it "returns all statuses" do
get :index
json = JSON.parse(response.body)
expect(response).to be_success
expect(json).to have_serialized(Status.all).with(StatusSerializer)
end
end
end
|