Skip to content

Instantly share code, notes, and snippets.

@jendiamond
Created July 25, 2013 00:23
Show Gist options
  • Save jendiamond/6075815 to your computer and use it in GitHub Desktop.
Save jendiamond/6075815 to your computer and use it in GitHub Desktop.
Grep

##grep

our tests should test that it does not raise an error another test to make sure it prints a friendly message.

grep -r "def ui" .

grep -r recursive "whatever you are searching for" where

http://www.cyberciti.biz/faq/howto-use-grep-command-in-linux-unix/

in ruby the name of the Class is the name of the file.

rubygems/bundler#2550

Run options: include {:focused=>true} exclude {:ruby=>"1.8", :realworld=>true, :sudo=>true}

All examples were filtered out; ignoring {:focused=>true}

bundle i error

prints a friendly message (FAILED - 1)

Failures:

  1. bundle i error prints a friendly message Failure/Error: expect{ bundle :i }.to raise_error expected Exception but nothing was raised

    ./spec/bundle_i_spec.rb:5:in `block (2 levels) in <top (required)>'

Finished in 1.22 seconds 1 example, 1 failure

Failed examples:

rspec ./spec/bundle_i_spec.rb:4 # bundle i error prints a friendly message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment