diff --git a/lib/xmlcellent.rb b/lib/xmlcellent.rb index 073d28d..3478aaf 100644 --- a/lib/xmlcellent.rb +++ b/lib/xmlcellent.rb @@ -1,4 +1,4 @@ -$:.unshift(File.expand_path(File.dirname(__FILE))) unless $:.include? File.expand_path(File.dirname(__FILE__)) +$:.unshift(File.expand_path(File.dirname(__FILE__))) unless $:.include? File.expand_path(File.dirname(__FILE__)) require "xmlcellent/format" require "xmlcellent/parser" diff --git a/lib/xmlcellent/format.rb b/lib/xmlcellent/format.rb index 8c35d72..fba9f5f 100644 --- a/lib/xmlcellent/format.rb +++ b/lib/xmlcellent/format.rb @@ -1,7 +1,6 @@ module Xmlcellent class Format - attr_reader :finder - attr_reader :lexicon + attr_reader :finder, :lexicon def initialize(config) @finder = config[:finder] diff --git a/test/test_xmlcellent.rb b/test/test_xmlcellent.rb index e5d7cb4..5a8a58f 100644 --- a/test/test_xmlcellent.rb +++ b/test/test_xmlcellent.rb @@ -1,10 +1,7 @@ require 'helper' class Item - attr_accessor :name - attr_accessor :summary - attr_accessor :color - attr_accessor :supplier + attr_accessor :name, :summary, :color, :supplier end class TestXmlcellent < Test::Unit::TestCase