Skip to content

Commit

Permalink
Revert "Reset @@parser in between specs"
Browse files Browse the repository at this point in the history
This reverts commit b562bed.

Closes #28.
  • Loading branch information
sferik committed May 9, 2012
1 parent b6982e1 commit 244e5f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion lib/multi_xml.rb
Expand Up @@ -57,7 +57,7 @@ class ParseError < StandardError; end
class << self
# Get the current parser class.
def parser
return @@parser unless @@parser.nil?
return @@parser if defined?(@@parser)
self.parser = self.default_parser
@@parser
end
Expand Down
4 changes: 0 additions & 4 deletions spec/multi_xml_spec.rb
Expand Up @@ -5,10 +5,6 @@ class MockDecoder; end

describe "MultiXml" do
context "Parsers" do
before do
MultiXml.send :class_variable_set, :@@parser, nil
end

it "should pick a default parser" do
MultiXml.parser.should be_kind_of(Module)
MultiXml.parser.should respond_to(:parse)
Expand Down

0 comments on commit 244e5f2

Please sign in to comment.