Sha256: 8922e1c9820cc1f24819262f12e23d57e822b7bc7c290b0d8614b85cb597a76f
Contents?: true
Size: 834 Bytes
Versions: 1
Compression:
Stored size: 834 Bytes
Contents
require 'covered/rspec' require 'async/rspec' require 'cloudflare/rspec/connection' require 'cloudflare/zones' RSpec.shared_context Cloudflare::Zone do include_context Cloudflare::RSpec::Connection let(:job_id) {ENV.fetch('TRAVIS_JOB_ID', 0).to_i} let(:names) {['testing', 'horse', 'cat', 'dog', 'fish', 'dolphin', 'lion', 'tiger']} let(:name) {"#{names[job_id % names.size]}.com"} let(:account) {connection.accounts.first} let(:zones) {connection.zones} let(:zone) {@zone = zones.find_by_name(name) || zones.create(name, account)} # after do # if defined? @zone # @zone.delete # end # end end RSpec.configure do |config| # Enable flags like --only-failures and --next-failure config.example_status_persistence_file_path = '.rspec_status' config.expect_with :rspec do |c| c.syntax = :expect end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cloudflare-4.0.1 | spec/spec_helper.rb |