jstorimer / spin

Spin speeds up your Rails testing workflow by preloading your Rails environment.

Home Page:http://jstorimer.github.com/spin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow specifying RSpec command line options

brynary opened this issue · comments

Spin will ignore any arguments passed to spin serve that are not paths to files:

spin/bin/spin

Line 191 in 72fbfc6

f = files_to_load.select { |f| File.exist?(f.split(':')[0].to_s) }.uniq.join(SEPARATOR)

This is unfortunate, as it prevents passing RSpec options to spin serve. I propose spin support a way to send in ARGV options that get set as the ARGV in the forked process.

Maybe we could use this style:

spin push -- --color --profile --tag type:model

Thoughts?

Makes sense to me. I like it.

Is specifying rspec options in .rspec file and letting spin pick it up from there not the best option? or are you suggesting that spin should support both.

I've cleaned up the bits for test unit from PR #45 to support this syntax with Rspec as well.