Skip to content

Commit

Permalink
const_set with test-unit gem returns Array class
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jun 1, 2021
1 parent 61b04e4 commit 6b18b60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/lib/with_different_ofs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ def teardown

def self.extended(klass)
super(klass)
klass.const_set(:DifferentOFS, Class.new(klass).class_eval {include WithDifferentOFS}).name
klass.const_set(:DifferentOFS, Class.new(klass).class_eval {include WithDifferentOFS})[0].name
end
end

0 comments on commit 6b18b60

Please sign in to comment.