forked from email-spec/email-spec
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
50 lines (43 loc) · 1.54 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
require 'rubygems'
require 'spec/rake/spectask'
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "email_spec"
s.platform = Gem::Platform::RUBY
s.authors = ['Ben Mabey', 'Aaron Gibralter', 'Mischa Fierer']
s.email = "[email protected]"
s.homepage = "http://github.com/bmabey/email-spec/"
s.summary = "Easily test email in rspec and cucumber"
s.bindir = "bin"
s.description = s.summary
s.require_path = "lib"
s.files = %w(History.txt install.rb MIT-LICENSE.txt README.rdoc Rakefile) + Dir["lib/**/*"] + Dir["rails_generators/**/*"] + Dir["spec/**/*"] + Dir["examples/**/*"]
# rdoc
s.has_rdoc = true
s.extra_rdoc_files = %w(README.rdoc MIT-LICENSE.txt)
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
begin
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features)
rescue LoadError
task :features do
abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
end
end
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
spec.spec_files = FileList['spec/**/*_spec.rb']
end
namespace :example_app do
Spec::Rake::SpecTask.new(:spec) do |spec|
desc "Specs for Example app"
spec.libs << 'lib' << 'spec'
spec.spec_files = FileList['examples/rails_root/spec/**/*_spec.rb']
end
end
task :default => [:features, :spec, 'example_app:spec']