Skip to content

Instantly share code, notes, and snippets.

@kschiess
Created January 10, 2011 14:02
Show Gist options
  • Save kschiess/772799 to your computer and use it in GitHub Desktop.
Save kschiess/772799 to your computer and use it in GitHub Desktop.
A minimal filtered rspec run (and a quine)
# 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)
@niko
Copy link

niko commented Jan 10, 2011

i love the comment in the first line :D

@kschiess
Copy link
Author

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