forked from gunn/Dispatch
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added mspec as a dependency, added a .mspec file so that macruby is u…
…sed, added a rakefile to help run specs.
- Loading branch information
Showing
3 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,17 @@ | ||
require 'bundler' | ||
Bundler::GemHelper.install_tasks | ||
|
||
namespace :spec do | ||
DISPATCH_MSPEC = "./spec/dispatch.mspec" | ||
DEFAULT_OPTIONS = "-B #{DISPATCH_MSPEC}" | ||
|
||
def mspec(type, options, env = nil) | ||
sh "mspec #{type} #{DEFAULT_OPTIONS} #{ENV['opts']} #{options}" | ||
end | ||
|
||
desc "Run all specs. To run a specific file: rake spec:run[spec/queue_spec.rb]" | ||
task :run, :file do |t, args| | ||
mspec :run, args[:file] || "spec" | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class MSpecScript | ||
set :target, 'macruby' | ||
end |