diff options
Diffstat (limited to 'spec/rubyspec/library/erb/result_spec.rb')
-rw-r--r-- | spec/rubyspec/library/erb/result_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/rubyspec/library/erb/result_spec.rb b/spec/rubyspec/library/erb/result_spec.rb index bc429da381..d79584b221 100644 --- a/spec/rubyspec/library/erb/result_spec.rb +++ b/spec/rubyspec/library/erb/result_spec.rb @@ -48,7 +48,7 @@ END it "is able to h() or u() if ERB::Util is included" do - class MyERB1 + myerb1 = Class.new do include ERB::Util def main input = "<%=h '<>' %>" @@ -56,13 +56,13 @@ END end end expected = '<>' - actual = MyERB1.new.main() + actual = myerb1.new.main() actual.should == expected end it "use TOPLEVEL_BINDING if binding is not passed" do - class MyERB2 + myerb2 = Class.new do include ERB::Util def main1 #input = "<%= binding.to_s %>" @@ -77,10 +77,10 @@ END eval '_xxx_var_ = 123', TOPLEVEL_BINDING expected = '123' - MyERB2.new.main1().should == expected + myerb2.new.main1().should == expected lambda { - MyERB2.new.main2() + myerb2.new.main2() }.should raise_error(NameError) end end |