Skip to content

Instantly share code, notes, and snippets.

@bluerabbit
Created January 21, 2013 09:22
Show Gist options
  • Save bluerabbit/4584817 to your computer and use it in GitHub Desktop.
Save bluerabbit/4584817 to your computer and use it in GitHub Desktop.
rspecで実行中かを判定する方法
def rspec?
__FILE__ != $0
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment