From 8c1ae9fe9d426b4de0e3c44697cd06b00a0afb4c Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Fri, 30 Nov 2018 08:45:13 +0100 Subject: [PATCH] Test stabilization: MX check for example.com mail address should be false but it true sometimes which causes test to be flanky. --- spec/requests/form_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/requests/form_spec.rb b/spec/requests/form_spec.rb index 7c4b10204..feda0f2ed 100644 --- a/spec/requests/form_spec.rb +++ b/spec/requests/form_spec.rb @@ -127,7 +127,7 @@ RSpec.describe 'Form', type: :request, searchindex: true do expect(json_response['errors']['title']).to eq('required') expect(json_response['errors']['body']).to eq('required') - post '/api/v1/form_submit', params: { fingerprint: fingerprint, token: token, name: 'Bob Smith', email: 'somebody@example.com', title: 'test', body: 'hello' }, as: :json + post '/api/v1/form_submit', params: { fingerprint: fingerprint, token: token, name: 'Bob Smith', email: 'somebody@somedomainthatisinvalid.com', title: 'test', body: 'hello' }, as: :json expect(response).to have_http_status(200) expect(json_response).to be_a_kind_of(Hash)