test/integration_helper.rb in peddler-0.6.3 vs test/integration_helper.rb in peddler-0.6.4
- old
+ new
@@ -5,10 +5,13 @@
class << self
attr_accessor :api
end
def accounts
+ skip if ENV['SKIP_INTEGRATION']
YAML.load_file(File.expand_path('../fixtures/mws.yml', __FILE__))
+ rescue Errno::ENOENT
+ skip('Credentials missing')
end
def setup
@clients = accounts.map { |mws| self.class.api.const_get(:Client).new(*mws.values) }
end