Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/regression/GH-4014_method_define_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Regression spec courtesy Jason Lunn to for GH issue 4104
# Regression spec courtesy Jason Lunn for GH issue 4104
module DefinesMethod
def def_meth &block
define_method :foo, &block
@@ -14,8 +14,8 @@ def bar
end
end

describe "NameError created internally using a format string" do
it "does not warn in verbose mode" do
describe "Method defined inside an instance method" do
it "should succeed even when that instance method is generated via define_method" do
o = RegressionTest.new
o.foo
expect(o.bar).to eq "Success"

0 comments on commit af57bdd

Please sign in to comment.