Skip to content

Commit

Permalink
Move Encoding helper into corelib from spec_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Oct 26, 2013
1 parent c5f3384 commit 889c69b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 4 additions & 0 deletions corelib/encoding.rb
Expand Up @@ -23,6 +23,10 @@ def self.find(name)
raise ArgumentError, "unknown encoding name - #{name}"
end

class << self
attr_accessor :default_external
end

attr_reader :name, :names

def initialize(name, names, ascii, dummy)
Expand Down
6 changes: 0 additions & 6 deletions spec/spec_helper.rb
Expand Up @@ -16,12 +16,6 @@ def eval_js(javascript)
end
end

class Encoding
class << self
attr_accessor :default_external
end
end

class OSpecFilter
def self.main
@main ||= self.new
Expand Down

0 comments on commit 889c69b

Please sign in to comment.