-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
31 lines (22 loc) · 1.03 KB
/
Rakefile
File metadata and controls
31 lines (22 loc) · 1.03 KB
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
# frozen_string_literal: true
# Disables Ruby verbose warnings - e.g. an instance variable wasn't initialized.
$VERBOSE = nil
# Bundler reads this environment variable to determine where the project's Gemfile is.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('Gemfile', __dir__)
# Prepares all of the gems listed in Gemfile for activation - mainly by loading the Gem specifications.
require 'bundler/setup'
# Provides Rake tasks for deploying the gem.
require 'bundler/gem_tasks'
# Provides a testing task.
require 'rake/testtask'
# Configure the testing task.
Rake::TestTask.new(:test) do |t|
# These directories will be added to +$LOAD_PATH+ before the tests run.
t.libs += %w[lib test]
# All of these files contain test cases. Use the same files listed in the gemspec.
t.test_files = Gem::Specification.find_by_name('omniauth-bcrypt').test_files
# Disable verbose output. This mainly just lists the test files that were loaded.
t.verbose = false
end
# Run the tests when no task is provided to the Rake CLI.
task default: 'test'