Sha256: 26a52df4a221f40e56140b988258e0a78ddf017db85d1a0b09c3156ac6f30190
Contents?: true
Size: 767 Bytes
Versions: 10
Compression:
Stored size: 767 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rspec' require 'authy' require 'pry' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| config.before(:suite) do Authy.api_uri = 'http://sandbox-api.authy.com' Authy.api_key = 'bf12974d70818a08199d17d5e2bae630' end config.before(:each) do end config.after(:each) do end def generate_email domain = "@authy.com" user = (0...8).map{97.+(rand(25)).chr}.join user + domain end def generate_cellphone n = rand(999) + 1000 "192-967-#{n}" end end
Version data entries
10 entries across 10 versions & 1 rubygems