Created
January 10, 2011 14:02
-
-
Save kschiess/772799 to your computer and use it in GitHub Desktop.
A minimal filtered rspec run (and a quine)
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
# puts (s="puts (s=%s)%%s.dump")%s.dump | |
require 'rspec' | |
RSpec::Core::Runner.disable_autorun! | |
describe "foo" do | |
it "bar" do | |
end | |
it "baz", :banane => true do | |
end | |
end | |
RSpec.configure do |config| config.filter = {banane: true}; end | |
RSpec::Core::Runner.run([], $stderr, $stdout) |
s = "print "s = "\nputs s.inspect\nputs s"
print "s = "
puts s.inspect
puts s
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i love the comment in the first line :D