Skip to content

Commit

Permalink
Merge pull request #18779 from djberg96/inter_region_api_method_relay…
Browse files Browse the repository at this point in the history
…_spec

Fix strict partial validation errors for InterRegionApiMethodRelay specs
  • Loading branch information
bdunne authored May 16, 2019
2 parents 24dc493 + 613d54e commit 344a3b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/models/mixins/inter_region_api_method_relay_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
describe InterRegionApiMethodRelay do
RSpec.describe InterRegionApiMethodRelay do
let(:collection_name) { :test_class_collection }
let(:api_config) { double("Api::CollectionConfig") }

Expand All @@ -8,8 +8,13 @@
allow(api_config).to receive(:name_for_klass).and_return(collection_name)

Class.new do
include ActiveRecord::IdRegions
extend InterRegionApiMethodRelay

def id
1
end

def self.name
"RegionalMethodRelayTestClass"
end
Expand Down

0 comments on commit 344a3b3

Please sign in to comment.