Skip to content

Commit 98e2f0f

Browse files
committed
moved rspec requirement into spec task to narrow dependencies
You can now run `rake jquery` and friends without installing rspec. Closes janl#135.
1 parent 17f5dc3 commit 98e2f0f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Rakefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
require 'rake'
2-
require 'rspec/core/rake_task'
32

43
task :default => :spec
54

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

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

0 commit comments

Comments
 (0)