Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add spec for using eval with different filenames on a binding

  • Loading branch information...
commit f717b1347b6446d0fb17725b6314a9da04e6cc7a 1 parent 241ff74
@dbussink dbussink authored brixen committed
Showing with 12 additions and 0 deletions.
  1. +12 −0 core/binding/eval_spec.rb
View
12 core/binding/eval_spec.rb
@@ -14,6 +14,18 @@
bind.eval("Inside.name").should == "BindingSpecs::Demo::Inside"
end
+ describe "with a file given" do
+
+ it "does not store the filename permanently" do
+ obj = BindingSpecs::Demo.new(1)
+ bind = obj.get_binding
+
+ bind.eval("__FILE__", "test.rb").should == "test.rb"
+ bind.eval("__FILE__").should_not == "test.rb"
+ end
+
+ end
+
it "needs to be completed"
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.