diff --git a/test/test_binding_of_caller.rb b/test/test_binding_of_caller.rb index 73d8bdf..9564204 100755 --- a/test/test_binding_of_caller.rb +++ b/test/test_binding_of_caller.rb @@ -129,6 +129,14 @@ def self.binding; @binding; end end end + describe "when evaluated" do + before { @binding = eval("binding.of_caller(0)") } + + it 'returns :eval' do + @binding.frame_type.should == :eval + end + end + describe "when inside a block" do before { @binding = proc { binding.of_caller(0) }.call }