Judge0Tsting / spec /controllers /statuses_controller_spec.rb
AdityaSharmaTech's picture
Upload 177 files
def1299 verified
raw
history blame contribute delete
324 Bytes
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