-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathRakefile
More file actions
34 lines (26 loc) · 778 Bytes
/
Rakefile
File metadata and controls
34 lines (26 loc) · 778 Bytes
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
#!/usr/bin/env rake
begin
require 'bundler/setup'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
require 'bundler/setup'
require "bundler/gem_tasks"
#Bundler::GemHelper.install_tasks
require "rake/testtask"
require "rspec/core/rake_task" # RSpec 2.0
desc "launch rspec tests"
task :spec do
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"]
t.pattern = 'spec/{controllers,lib,requests}/*_spec.rb'
end
end
desc "launch selenium tests on SauceLabs"
task :sauce do
RSpec::Core::RakeTask.new(:sauce) do |t|
t.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"]
t.pattern = 'spec/selenium/*_spec.rb'
end
end
task :default => :spec