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

Commit

Permalink
test: use setup not initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Feb 23, 2021
1 parent fd0ced0 commit 935584e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_martin_fowler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ class OrderTesterMF < Test::Unit::TestCase
</paper>
END

def initialize n
def setup
@doc = REXML::Document.new(DOC)
@figs = REXML::XPath.match(@doc,'//figure')
@names = @figs.collect {|f| f.attributes['src']}
super
end

def test_fig1
assert_equal 'fig1', @figs[0].attributes['src']
end
Expand Down

0 comments on commit 935584e

Please sign in to comment.