test/integration_helper.rb in peddler-1.6.7 vs test/integration_helper.rb in peddler-2.0.0
- old
+ new
@@ -22,10 +22,10 @@
klass = MWS.const_get("#{current_endpoint}::Client")
::Credentials.map { |credentials| klass.new(credentials) }.shuffle
end
def current_endpoint
- @current_endpoint || name.sub('Test', '')
+ @current_endpoint ||= name.sub('Test', '')
end
end
def clients
self.class.clients