Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (20 sloc) 0.712 kB
require File.dirname(__FILE__) + '/../spec_helper'
require File.dirname(__FILE__) + '/../fixtures/code_loading'
require File.dirname(__FILE__) + '/shared/__FILE__'
describe "The __FILE__ constant" do
it "equals (eval) inside an eval" do
eval("__FILE__").should == "(eval)"
end
end
describe "The __FILE__ constant" do
it_behaves_like :language___FILE__, :require, CodeLoadingSpecs::Method.new
end
describe "The __FILE__ constant" do
it_behaves_like :language___FILE__, :require, Kernel
end
describe "The __FILE__ constant" do
it_behaves_like :language___FILE__, :load, CodeLoadingSpecs::Method.new
end
describe "The __FILE__ constant" do
it_behaves_like :language___FILE__, :load, Kernel
end
Jump to Line
Something went wrong with that request. Please try again.