Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Commit

Permalink
Ruby 1.9 compatibility - declare encoding in UTF8 example
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Feb 14, 2009
1 parent 62da903 commit c5ba55b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spec/runner/example_group_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ def initialize(options)
end

def load_files(files)
$KCODE = 'u' if RUBY_VERSION.to_f < 1.9
# It's important that loading files (or choosing not to) stays the
# responsibility of the ExampleGroupRunner. Some implementations (like)
# the one using DRb may choose *not* to load files, but instead tell
# someone else to do it over the wire.
$KCODE = 'u' if RUBY_VERSION < '1.9'
files.each do |file|
load file
end
Expand Down
1 change: 1 addition & 0 deletions spec/spec/runner/resources/utf8_encoded.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# encoding: utf-8
module Custom
class ExampleUTF8ClassNameVarietà
def self.è
Expand Down

0 comments on commit c5ba55b

Please sign in to comment.