Skip to content

Commit fd0ef1f

Browse files
committed
Move rspec options into file
1 parent b4268a8 commit fd0ef1f

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.rspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--color
2+
--format=nested
3+
--backtrace

Rakefile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,17 @@
33
require 'bundler'
44
Bundler::GemHelper.install_tasks
55

6-
task :default => :spec
7-
86
require 'rspec/core/rake_task'
9-
RSpec::Core::RakeTask.new do |t|
10-
t.rspec_opts = ["--color", '--format doc']
11-
end
7+
RSpec::Core::RakeTask.new(:spec)
8+
9+
task :test => :spec
10+
task :default => :spec
1211

1312
require 'rdoc/task'
13+
require File.expand_path('../lib/linked_in/version', __FILE__)
1414
Rake::RDocTask.new do |rdoc|
15-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
1615
rdoc.rdoc_dir = 'rdoc'
17-
rdoc.title = "linkedin #{version}"
16+
rdoc.title = "linkedin #{LinkedIn::VERSION::STRING}"
1817
rdoc.rdoc_files.include('README*')
1918
rdoc.rdoc_files.include('lib/**/*.rb')
2019
end

0 commit comments

Comments
 (0)