From c78b6365b70461e349a9153e9a9fea2f68fa3936 Mon Sep 17 00:00:00 2001 From: "joseph@dxw.com" Date: Thu, 28 Nov 2024 16:49:26 +0000 Subject: [PATCH] Add test --- spec/features/billy_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 spec/features/billy_spec.rb diff --git a/spec/features/billy_spec.rb b/spec/features/billy_spec.rb new file mode 100644 index 0000000..631203b --- /dev/null +++ b/spec/features/billy_spec.rb @@ -0,0 +1,10 @@ +require 'rails_helper' + +feature "Test Puffing Billy", js: true do + it 'should stub google' do + proxy.stub('http://www.google.com').and_return(text: "I'm not Google!") + + visit 'http://www.google.com' + expect(page).to have_content("I'm not Google!") + end +end