From 1a04e83476affc11382522c0aa34e320dd6b6f0f Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Thu, 30 Apr 2020 14:13:22 +0200 Subject: [PATCH] fix specs --- spec/requests/client_prefixes_spec.rb | 2 +- spec/requests/provider_prefixes_spec.rb | 2 +- spec/requests/repository_prefixes_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/requests/client_prefixes_spec.rb b/spec/requests/client_prefixes_spec.rb index bc05fb6c1..dbebf873c 100644 --- a/spec/requests/client_prefixes_spec.rb +++ b/spec/requests/client_prefixes_spec.rb @@ -112,7 +112,7 @@ post '/client-prefixes', not_valid_attributes, headers expect(last_response.status).to eq(422) - expect(json["errors"].first).to eq("source" => "client", "title"=>"Can't be blank") + expect(json["errors"].first).to eq("source" => "client", "title"=>"Must exist") end end end diff --git a/spec/requests/provider_prefixes_spec.rb b/spec/requests/provider_prefixes_spec.rb index 3a46a33e4..18318294a 100644 --- a/spec/requests/provider_prefixes_spec.rb +++ b/spec/requests/provider_prefixes_spec.rb @@ -146,7 +146,7 @@ post '/provider-prefixes', not_valid_attributes, headers expect(last_response.status).to eq(422) - expect(json["errors"].first).to eq("source"=>"provider", "title"=>"Can't be blank") + expect(json["errors"].first).to eq("source"=>"provider", "title"=>"Must exist") end end end diff --git a/spec/requests/repository_prefixes_spec.rb b/spec/requests/repository_prefixes_spec.rb index e44e6ab8e..2a6a5ff8b 100644 --- a/spec/requests/repository_prefixes_spec.rb +++ b/spec/requests/repository_prefixes_spec.rb @@ -164,7 +164,7 @@ post '/repository-prefixes', not_valid_attributes, headers expect(last_response.status).to eq(422) - expect(json["errors"].first).to eq("source"=>"client", "title"=>"Can't be blank") + expect(json["errors"].first).to eq("source"=>"client", "title"=>"Must exist") end end end