Skip to content

Commit f57d1ef

Browse files
committed
fix intermittant spec failure
1 parent 45fa2ea commit f57d1ef

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

spec/unit/intercom/traits/api_resource_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"user_count"=>1,
1414
"custom_attributes"=>{}}
1515
end
16-
let(:api_resource) { Object.new.extend(Intercom::Traits::ApiResource)}
16+
let(:api_resource) { DummyClass.new.extend(Intercom::Traits::ApiResource)}
1717

1818
before(:each) { api_resource.from_response(object_json) }
1919

@@ -80,4 +80,6 @@ def except(h, *keys)
8080
keys.each { |key| h.delete(key) }
8181
h
8282
end
83+
84+
class DummyClass; end
8385
end

0 commit comments

Comments
 (0)