diff --git a/spec/requests/domain_v1_spec.rb b/spec/requests/domain_v1_spec.rb index 0e362179a..a622b6828 100644 --- a/spec/requests/domain_v1_spec.rb +++ b/spec/requests/domain_v1_spec.rb @@ -18,7 +18,7 @@ describe Repp::DomainV1 do # TODO: Maybe there is a way not to convert from and to json again expect(body['domains'].to_json).to eq(epp_user.registrar.domains.to_json) - log = ApiLog::ReppLog.first + log = ApiLog::ReppLog.last expect(log[:request_path]).to eq('/repp/v1/domains') expect(log[:request_method]).to eq('GET') expect(log[:request_params]).to eq('{}')