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 11RSpec . describe 'Orders Integration' do
2- # biomass test project
3- BIOMASS_TEST_PROJECT_ID = "pro_test_c3a9feba769fc7a8806377266ca9ff6a"
4-
52 before do
63 Patch . configure do |config |
74 config . access_token = ENV [ 'SANDBOX_API_KEY' ]
2926 end
3027
3128 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+ )
3332
3433 project_id = retrieve_project_response . data . id
3534 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 1212
1313# load the gem
1414require 'patch_ruby'
15+ require 'constants'
1516
1617# The following was generated by the `rspec --init` command. Conventionally, all
1718# 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