diff --git a/spec/controllers/static_controller_spec.rb b/spec/controllers/static_controller_spec.rb index a22347a1..f1ffb014 100644 --- a/spec/controllers/static_controller_spec.rb +++ b/spec/controllers/static_controller_spec.rb @@ -38,7 +38,7 @@ RSpec.describe StaticController, :type => :controller do } } }) - expect(File).to receive(:read).with("#{$RAILS_ROOT}/CCS_HASH").and_return("hash") + expect(File).to receive(:read).with("#{$RAILS_ROOT}/CCS_HASH").and_return("hash\n") get('ccs') expect(response).to redirect_to "https://github.com/account/repo/tree/hash" end