Owyhee Software Blog

Caffeine-Free Software

Filed underrspec ruby rails

See all posts on Posterous with this tag »

Adam Thorsen


Twitter
Adam Thorsen's profile »

Software

  • MotoDiary
  • Playground -- a browser for web devs
  • SoftNotifier -- get notifications without being interrupted

Tags

  • adobe fireworks playground (1)
  • im acquisition (1)
  • poker programming hoffer playfulness (1)
  • programming dating (1)
  • programming objective-c (1)
  • rails development programming learning (1)
  • reddit (1)
  • rspec ruby rails (1)
  • ruby (1)

Archive

2010 (2)
December (1)
October (1)
2009 (6)
December (1)
July (1)
April (1)
February (1)
January (2)
2008 (41)
December (3)
November (3)
October (3)
September (3)
August (2)
July (2)
May (4)
April (5)
March (5)
February (7)
January (4)
2007 (10)
December (5)
August (2)
June (1)
May (2)
November 19, 2008

Running a Single Spec

  • Edit
  • Delete
  • Tags
  • Autopost
Here is a bash function that creates a command (if included in your .bash_profile) that will let you run a single example:

function rs
{
rake spec SPEC=spec/$1 SPEC_OPTS="-e \"$2\""
}
Use it like this:
rs models/submission_spec.rb "should be rejected if research process is set to :not_interested"

Filed under  //

  • rspec ruby rails
Tweet
  • 0 responses
  • Like
  • Comment