ソースを参照

moved rspec requirement into spec task to narrow dependencies

You can now run `rake jquery` and friends without installing rspec.
Closes #135.
tags/0.4.0
Benjamin Young 14年前
コミット
98e2f0f35c
1個のファイルの変更7行の追加7行の削除
  1. +7
    -7
      Rakefile

+ 7
- 7
Rakefile ファイルの表示

@@ -1,15 +1,15 @@
require 'rake'
require 'rspec/core/rake_task'

task :default => :spec

RSpec::Core::RakeTask.new(:spec) do |t|
#t.spec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
t.pattern = 'test/*_spec.rb'
end

desc "Run all specs"
task :spec
task :spec do
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |t|
#t.spec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
t.pattern = 'test/*_spec.rb'
end
end

def templated_build(name, opts={})
# Create a rule that uses the .tmpl.{pre,post} stuff to make a final,


読み込み中…
キャンセル
保存