Skip to content

Commit

Permalink
spec rake
Browse files Browse the repository at this point in the history
  • Loading branch information
humanzz committed Sep 22, 2008
1 parent e80ac8a commit 7b90d4c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
7 changes: 7 additions & 0 deletions Rakefile
@@ -0,0 +1,7 @@
require 'rubygems'
require 'rake'

Dir['tasks/*.rake'].each { |rake| load rake }

task :default => :spec

4 changes: 2 additions & 2 deletions spec/fiber_extensions_spec.rb
@@ -1,4 +1,5 @@
require '../lib/neverblock'
$:.unshift File.expand_path('..')
require 'lib/neverblock'

describe Fiber do
before(:all) do
Expand All @@ -21,4 +22,3 @@
@fiber = nil
end
end

3 changes: 2 additions & 1 deletion spec/fiber_pool_spec.rb
@@ -1,4 +1,5 @@
require '../lib/neverblock'
$:.unshift File.expand_path('..')
require 'lib/neverblock'

describe NeverBlock::Pool::FiberPool do
before(:each) do
Expand Down
12 changes: 12 additions & 0 deletions tasks/spec.rake
@@ -0,0 +1,12 @@
$:.unshift File.expand_path('..')

require 'rubygems'
require 'rake'
require 'spec/rake/spectask'

desc "Run all specs"

Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/*_spec.rb']
t.spec_opts = ["--format specdoc"]
end

0 comments on commit 7b90d4c

Please sign in to comment.