File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change
1
+ module Constants
2
+ BIOMASS_TEST_PROJECT_ID = "pro_test_c3a9feba769fc7a8806377266ca9ff6a"
3
+ end
Original file line number Diff line number Diff line change 1
1
RSpec . describe 'Orders Integration' do
2
- # biomass test project
3
- BIOMASS_TEST_PROJECT_ID = "pro_test_c3a9feba769fc7a8806377266ca9ff6a"
4
-
5
2
before do
6
3
Patch . configure do |config |
7
4
config . access_token = ENV [ 'SANDBOX_API_KEY' ]
29
26
end
30
27
31
28
it 'supports create with a project-id' do
32
- retrieve_project_response = Patch ::Project . retrieve_project ( BIOMASS_TEST_PROJECT_ID )
29
+ retrieve_project_response = Patch ::Project . retrieve_project (
30
+ Constants ::BIOMASS_TEST_PROJECT_ID
31
+ )
33
32
34
33
project_id = retrieve_project_response . data . id
35
34
average_price_per_tonne_cents_usd = retrieve_project_response . data . average_price_per_tonne_cents_usd
Original file line number Diff line number Diff line change 12
12
13
13
# load the gem
14
14
require 'patch_ruby'
15
+ require 'constants'
15
16
16
17
# The following was generated by the `rspec --init` command. Conventionally, all
17
18
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
You can’t perform that action at this time.
0 commit comments