Created
June 17, 2014 14:32
-
-
Save jivagoalves/cf238e634b8967e6e14c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe "class visibility" do | |
class ClassDefinedAtDescribeLevel; end | |
it { class ClassDefinedAtItLevel; end } | |
end | |
puts "#{ClassDefinedAtDescribeLevel} defined" | |
# puts "#{ClassDefinedAtItLevel} defined" # raises error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output from spec above
Output from spec above with
puts "#{ClassDefinedAtItLevel} defined"
: