From 84c683bcb80ac8e9d131c2d56ba82061b40278ac Mon Sep 17 00:00:00 2001 From: Markus Graf Date: Tue, 29 Mar 2016 22:19:48 +0200 Subject: [PATCH] Do a real sleep to have a real integration test otherwise travis sometimes breaks --- spec/features/support_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/features/support_spec.rb b/spec/features/support_spec.rb index a7a79df..5e743b0 100644 --- a/spec/features/support_spec.rb +++ b/spec/features/support_spec.rb @@ -2,7 +2,6 @@ require 'rails_helper' feature 'Support announcement' do scenario 'User announces support' do - allow_any_instance_of(SupportersController).to receive(:input_to_fast?).and_return(false) visit root_path fill_in 'Vorname', with: 'Christoph' @@ -19,6 +18,8 @@ feature 'Support announcement' do check 'Ich bin interessiert an einer Mitgliedschaft beim Verein Legalize it! (50 Franken pro Jahr)' + sleep 5 # Do a real sleep to have a real integration test + expect { click_button 'Unterstützung zusichern' }.to change { Supporter.count }.by(1) supporter = Supporter.find_by(email: 'blocher@blocher.ch') expect(supporter.coordinates).to eq [8.618589100000001, 47.2926304]