Skip to content

Commit

Permalink
do not blow up if fixtury overrides test method
Browse files Browse the repository at this point in the history
  • Loading branch information
mnelson committed Mar 13, 2024
1 parent 3aee468 commit cd5729d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
fixtury (1.0.0.beta5)
fixtury (1.0.0.beta6)

GEM
remote: https://rubygems.org/
Expand Down
5 changes: 0 additions & 5 deletions lib/fixtury/minitest_hooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,6 @@ def fixtury(*searches, **opts)

pathnames.each do |pathname|
method_name = (accessor_option == true ? pathname.split("/").last : accessor_option).to_sym

if method_defined?(method_name)
raise ArgumentError, "A method by the name of #{method_name} already exists in #{self}"
end

ivar = :"@fixtury_#{method_name}"

class_eval <<-EV, __FILE__, __LINE__ + 1
Expand Down
2 changes: 1 addition & 1 deletion lib/fixtury/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Fixtury

VERSION = "1.0.0.beta5"
VERSION = "1.0.0.beta6"

end

0 comments on commit cd5729d

Please sign in to comment.