Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (38 sloc) 1.062 kB
desc "Run tests"
task :test do
Dir['test/**/*_test.rb'].each { |file| require file }
end
begin
require 'spec/rake/spectask'
desc "Run specs"
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
t.spec_opts = %w(-fs --color)
end
rescue LoadError
nil
end
task :default => :test
begin
require 'jeweler'
$LOAD_PATH.unshift File.dirname(__FILE__) + '/lib'
require 'fakefs/version'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "fakefs"
gemspec.summary = "A fake filesystem. Use it in your tests."
gemspec.email = "chris@ozmm.org"
gemspec.homepage = "http://github.com/defunkt/fakefs"
gemspec.description = "A fake filesystem. Use it in your tests."
gemspec.authors = ["Chris Wanstrath"]
gemspec.has_rdoc = false
gemspec.version = FakeFS::Version.to_s
end
rescue LoadError
puts "Jeweler not available."
puts "Install it with: gem install jeweler"
end
begin
require 'sdoc_helpers'
rescue LoadError
puts "sdoc support not enabled. Please gem install sdoc-helpers."
end
Jump to Line
Something went wrong with that request. Please try again.