Skip to content

Commit

Permalink
Existing tests should be using the current region
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunne committed Oct 1, 2018
1 parent 2073c78 commit 621ced9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/requests/instances_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def update_raw_power_state(state, *instances)
let(:instance_url) { api_instance_url(nil, instance) }
let(:instance1_url) { api_instance_url(nil, instance1) }
let(:instance2_url) { api_instance_url(nil, instance2) }
let(:invalid_instance_url) { api_instance_url(nil, 999_999) }
let(:invalid_instance_url) { api_instance_url(nil, ApplicationRecord.id_in_region(999_999, ApplicationRecord.my_region_number)) }
let(:instances_list) { [instance1_url, instance2_url] }
let(:instance_guid) { instance.guid }

Expand Down
2 changes: 1 addition & 1 deletion spec/requests/vms_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
let(:vm_guid) { vm.guid }
let(:vm_url) { api_vm_url(nil, vm) }

let(:invalid_vm_url) { api_vm_url(nil, 999_999) }
let(:invalid_vm_url) { api_vm_url(nil, ApplicationRecord.id_in_region(999_999, ApplicationRecord.my_region_number)) }

def update_raw_power_state(state, *vms)
vms.each { |vm| vm.update_attributes!(:raw_power_state => state) }
Expand Down

0 comments on commit 621ced9

Please sign in to comment.