File tree 5 files changed +0
-38
lines changed
5 files changed +0
-38
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ Gem::Specification.new do |spec|
17
17
spec . test_files = spec . files . grep ( /^(test|spec|features)\/ / )
18
18
spec . require_paths = [ 'lib' ]
19
19
20
- spec . add_dependency 'nested_config' , '~> 0.5'
21
20
spec . add_dependency 'multi_json' , '~> 1.10'
22
21
spec . add_dependency 'google-api-client' , '~> 0.8'
23
22
Original file line number Diff line number Diff line change 1
1
require 'candy_check/version'
2
- require 'candy_check/config'
3
2
require 'candy_check/utils'
4
3
require 'candy_check/app_store'
5
4
require 'candy_check/play_store'
6
5
7
6
# Module to check and verify in-app receipts
8
7
module CandyCheck
9
- # Reads the config for this module
10
- # @return [Config]
11
- def self . config
12
- @config ||= Config . new
13
- end
14
-
15
- # Configure this module
16
- # @yield [config] Allows changing the config
17
- # @yieldparam config [Config]
18
- # @return [Config]
19
- def self . configure
20
- yield config
21
- config
22
- end
23
8
end
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 6
6
it 'has a version' do
7
7
subject ::VERSION . wont_be_nil
8
8
end
9
- it 'has a config' do
10
- subject . config . must_be_instance_of CandyCheck ::Config
11
- end
12
- it 'allows configuration' do
13
- c = subject . configure do |config |
14
- config . test_value = 1
15
- end
16
- subject . config . test_value . must_equal 1
17
- c . must_be_same_as ( subject . config )
18
- end
19
9
end
Original file line number Diff line number Diff line change 7
7
require 'minitest/around/spec'
8
8
9
9
require 'webmock/minitest'
10
- require 'nested_config/with_config'
11
10
12
11
require_relative 'support/with_fixtures'
13
12
require_relative 'support/with_temp_file'
14
13
15
14
ENV [ 'DEBUG' ] && Google ::APIClient . logger . level = Logger ::DEBUG
16
15
17
16
module MiniTest
18
- class Spec
19
- include NestedConfig ::WithConfig
20
- end
21
-
22
17
module Assertions
23
18
# The first parameter must be ```true```, not coercible to true.
24
19
def assert_true ( obj , msg = nil )
You can’t perform that action at this time.
0 commit comments