class Typingpool::Test
Attributes
live[RW]
record[RW]
Public Instance Methods
skip_during_vcr_playback(skipping_what='')
click to toggle source
# File lib/typingpool/test.rb, line 42 def skip_during_vcr_playback(skipping_what='') skip_with_message("Runs only with --live or --record option", skipping_what) unless (Typingpool::Test.live || Typingpool::Test.record) end
skip_if_no_amazon_credentials(skipping_what='', config=self.config)
click to toggle source
# File lib/typingpool/test.rb, line 22 def skip_if_no_amazon_credentials(skipping_what='', config=self.config) if not (amazon_credentials?(config)) skip_with_message('Missing or incomplete Amazon credentials', skipping_what) end end
skip_if_no_s3_credentials(skipping_what='', config=self.config)
click to toggle source
# File lib/typingpool/test.rb, line 28 def skip_if_no_s3_credentials(skipping_what='', config=self.config) if not (skip_if_no_amazon_credentials(skipping_what, config)) if not(s3_credentials?(config)) skip_with_message('No Amazon S3 credentials', skipping_what) end #if not(s3_credentials?...) end #if not(skip_if_no_amazon_credentials...) end
skip_if_no_sftp_credentials(skipping_what='', config=self.config)
click to toggle source
# File lib/typingpool/test.rb, line 36 def skip_if_no_sftp_credentials(skipping_what='', config=self.config) if not(sftp_credentials?(config)) skip_with_message('No SFTP credentials', skipping_what) end #if not(sftp_credentials?... end
skip_if_no_upload_credentials(skipping_what='', config=self.config)
click to toggle source
# File lib/typingpool/test.rb, line 46 def skip_if_no_upload_credentials(skipping_what='', config=self.config) if not(s3_credentials?(config) || sftp_credentials?(config)) skip_with_message("No S3 or SFTP credentials in config", skipping_what) end #if not(s3_credentials?... end
skip_with_message(reason, skipping_what='')
click to toggle source
# File lib/typingpool/test.rb, line 16 def skip_with_message(reason, skipping_what='') skipping_what = " #{skipping_what}" unless skipping_what.empty? skip ("Skipping#{skipping_what}: #{reason}") true end