Permalink
Browse files

Add spec for using eval with different filenames on a binding

  • Loading branch information...
1 parent 241ff74 commit f717b1347b6446d0fb17725b6314a9da04e6cc7a @dbussink dbussink committed with brixen Mar 3, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 core/binding/eval_spec.rb
View
@@ -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

0 comments on commit f717b13

Please sign in to comment.