Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

複数ファイル指定したくなりました #2

Merged
merged 1 commit into from

2 participants

@mahm

ので、コード追加しました。

@mataki mataki merged commit 30001fb into mataki:master
@mataki
Owner

リリースしました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 21, 2012
  1. @mahm

    Can test many specs

    mahm authored
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 2 deletions.
  1. +6 −2 bin/spork_runner
View
8 bin/spork_runner
@@ -37,14 +37,18 @@ def to_argument(line)
end
-def rspec(file)
- $spec_server.run(config << file, STDERR, STDOUT)
+def rspec(*files)
+ files.each do |file|
+ $spec_server.run(config << file, STDERR, STDOUT)
+ end
end
puts <<DESC
Example:
> rspec 'spec/models/user_spec.rb'
+ or
+ > rspec 'spec/models/user_spec.rb', 'spec/models/membership_spec.rb'
DESC
Something went wrong with that request. Please try again.