Skip to content

Commit

Permalink
for specs 'United States' to 'US'
Browse files Browse the repository at this point in the history
  • Loading branch information
timeratp committed Sep 11, 2024
1 parent ffd23cb commit 54c8e65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions spec/acceptance/rest/admin/api/system/networks_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
end

get '/api/rest/admin/system/networks/:id' do
let(:id) { System::Network.find_by!(name: 'UNITED STATES').id }
# let(:id) { System::Network.find_by!(name: 'UNITED STATES').id }
let(:id) { System::Network.find_by!(name: 'US').id }

example_request 'get specific entry' do
expect(status).to eq(200)
Expand Down Expand Up @@ -60,7 +61,8 @@
jsonapi_attributes(required_params, [])
jsonapi_relationships(required_relationships, [])

let!(:network) { System::Network.find_by!(name: 'UNITED STATES') }
# let!(:network) { System::Network.find_by!(name: 'UNITED STATES') }
let!(:network) { System::Network.find_by!(name: 'US') }
let!(:network_type) { create(:network_type) }
let(:id) { network.id }
let(:name) { 'name' }
Expand Down
3 changes: 2 additions & 1 deletion spec/acceptance/rest/customer/api/v1/networks_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
let(:auth_token) { build_customer_token(api_access.id, expiration: 1.minute.from_now) }
let(:type) { 'networks' }

let!(:network) { System::Network.find_by!(name: 'UNITED STATES') }
# let!(:network) { System::Network.find_by!(name: 'UNITED STATES') }
let!(:network) { System::Network.find_by!(name: 'US') }

get '/api/rest/customer/v1/networks' do
jsonapi_filters Api::Rest::Customer::V1::NetworkResource._allowed_filters
Expand Down

0 comments on commit 54c8e65

Please sign in to comment.