Skip to content

Commit e887367

Browse files
committed
initing rspec
1 parent cef6683 commit e887367

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

.rspec

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--color
2+
--warnings
3+
--require spec_helper

spec/TODO

Whitespace-only changes.

spec/lib/rspotify_spec.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
describe RSpotify do
2+
end

spec/spec_helper.rb

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
require 'rspotify'
2+
3+
RSpec.configure do |config|
4+
5+
config.filter_run :focus
6+
config.run_all_when_everything_filtered = true
7+
8+
if config.files_to_run.one?
9+
config.default_formatter = 'doc'
10+
end
11+
12+
config.profile_examples = 10
13+
14+
config.order = :random
15+
16+
Kernel.srand config.seed
17+
18+
config.expect_with :rspec do |expectations|
19+
expectations.syntax = :expect
20+
end
21+
22+
config.mock_with :rspec do |mocks|
23+
mocks.syntax = :expect
24+
25+
mocks.verify_partial_doubles = true
26+
end
27+
end

0 commit comments

Comments
 (0)