Skip to content

Instantly share code, notes, and snippets.

@febuiles
Created November 22, 2008 17:13
Show Gist options
  • Select an option

  • Save febuiles/27883 to your computer and use it in GitHub Desktop.

Select an option

Save febuiles/27883 to your computer and use it in GitHub Desktop.
describe "The predefined global constants" do
it "includes DATA when main script contains __END__" do
ruby_exe(<<-EOF).chomp.should == 'true'
puts Object.const_defined?(:DATA)
__END__
EOF
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment