From 304a38f7b02e51a6d5eb1919e1a422dca7825771 Mon Sep 17 00:00:00 2001 From: sanemat Date: Sun, 16 Dec 2012 01:57:03 +0900 Subject: [PATCH] Add magic comment for Ruby2.0.0 Ruby2.0.0 default encoding is UTF-8 instead of US_ASCII --- lib/capybara/spec/session/screenshot.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/capybara/spec/session/screenshot.rb b/lib/capybara/spec/session/screenshot.rb index c29fb30a..1f86c193 100644 --- a/lib/capybara/spec/session/screenshot.rb +++ b/lib/capybara/spec/session/screenshot.rb @@ -1,3 +1,4 @@ +#coding: US-ASCII Capybara::SpecHelper.spec "#save_screenshot" do let(:image_path) { File.join(Dir.tmpdir, 'capybara-screenshot.png') }