Permalink
Browse files

Make mode an argument to the constructor, and then run. Add sandbox t…

…ask.
  • Loading branch information...
1 parent 5097a05 commit 2c2ce34271d6b91a0d32236e9d8ae2ce0464e125 @louismullie committed Sep 18, 2012
Showing with 9 additions and 3 deletions.
  1. +9 −3 Rakefile
View
12 Rakefile
@@ -2,7 +2,13 @@ require 'date'
# All commands are prefixed with "treat:".
namespace :treat do
-
+
+ # Sandboxing a script can be done here.
+ task :sandbox do
+ require './lib/treat'
+ require './spec/sandbox'
+ end
+
# Returns the current version of Treat.
# Syntax: rake treat:version
task :version do
@@ -51,7 +57,7 @@ namespace :treat do
# Run all of the benchmark examples.
Treat::Specs::Workers::Language.
list.each do |lang|
- lang.new.run('spec')
+ lang.new('spec').run
end
# Require the core and entity specs.
@@ -77,7 +83,7 @@ namespace :treat do
Treat::Specs::Workers::Language.
list.each do |lang|
- lang.new.run('benchmark')
+ lang.new('benchmark').run
end
end

0 comments on commit 2c2ce34

Please sign in to comment.