Skip to content

Commit 5c99e1a

Browse files
committed
Remove useless encoding magic comment
Script encoding has been set to UTF-8 by default since Ruby 2.0. Since WebMock supports Ruby 2.6 and above, these script encoding specification is unnecessary.
1 parent da93416 commit 5c99e1a

8 files changed

Lines changed: 0 additions & 11 deletions

File tree

spec/acceptance/async_http_client/async_http_client_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# encoding: utf-8
21
require 'spec_helper'
32
require 'acceptance/webmock_shared'
43
require_relative './async_http_client_spec_helper'

spec/acceptance/em_http_request/em_http_request_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# encoding: utf-8
21
require 'spec_helper'
32
require 'acceptance/webmock_shared'
43
require 'ostruct'

spec/acceptance/http_rb/http_rb_spec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# encoding: utf-8
2-
31
require "spec_helper"
42
require "acceptance/webmock_shared"
53
require "acceptance/http_rb/http_rb_spec_helper"

spec/acceptance/patron/patron_spec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# encoding: utf-8
2-
31
require 'spec_helper'
42
require 'acceptance/webmock_shared'
53

spec/acceptance/shared/stubbing_requests.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# encoding: utf-8
2-
31
shared_examples_for "stubbing requests" do |*adapter_info|
42
describe "when requests are stubbed" do
53
describe "based on uri" do

spec/unit/rack_response_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# encoding: utf-8
21
require 'spec_helper'
32

43
describe WebMock::RackResponse do

spec/unit/util/parsers/json_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# encoding: utf-8
21
require 'spec_helper'
32

43
describe WebMock::Util::Parsers::JSON do

webmock.gemspec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- encoding: utf-8 -*-
21
$:.push File.expand_path('../lib', __FILE__)
32
require 'webmock/version'
43

0 commit comments

Comments
 (0)