Sha256: c44343fc4105436f3fde421876337ed4ba1c36f9ff03244ed501c886b80f7ca3
Contents?: true
Size: 725 Bytes
Versions: 1
Compression:
Stored size: 725 Bytes
Contents
require 'rake' require 'rspec' require 'rspec/collection_matchers' # Configure Rails Environment ENV["RAILS_ENV"] = "test" require File.expand_path("../dummy/config/environment.rb", __FILE__) require 'rspec/rails' Rails.backtrace_cleaner.remove_silencers! require_relative "../lib/esendex" include Esendex RSpec.configure do |config| config.color = true end def random_string (0...24).map{ ('a'..'z').to_a[rand(26)] }.join end def random_email "#{random_string}@#{random_string}.com" end def random_integer rand(9999) end def random_mobile "447#{"%09d" % rand(999999999)}" end def random_time Time.now + rand(9999) end def random_guid SecureRandom.uuid end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
esendex-0.6.0 | spec/spec_helper.rb |