Sha256: 3a8d583f5b4079e47a563e84cd77d6d98cc67cc3f0e2484604518536d1a0b337
Contents?: true
Size: 863 Bytes
Versions: 4
Compression:
Stored size: 863 Bytes
Contents
Bundler.setup(:default, :test) require 'cucumber' require 'rspec' require 'mocha' # Use mocha for mocking RSpec.configure do |config| config.mock_with :mocha end # Verify mocha after each scenario After do Mocha::Mockery.instance.verify(nil) Mocha::Mockery.instance.teardown Mocha::Mockery.reset_instance end require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib', 'animoto', 'client')) module Animoto class IntegrationTest include Mocha::API def client @client ||= begin endpoint = case ENV['ANIMOTO_PLATFORM_ENV'] when 'production' : '' when NilClass : '-sandbox' else : "-#{ENV['ANIMOTO_PLATFORM_ENV']}" end Client.new ENV['ANIMOTO_USERNAME'], ENV['ANIMOTO_PASSWORD'], :endpoint => endpoint end end end end World { Animoto::IntegrationTest.new }
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
animoto-1.5.0 | ./features/support/env.rb |
animoto-1.3.1 | ./features/support/env.rb |
animoto-1.3.0 | ./features/support/env.rb |
animoto-1.2.0 | ./features/support/env.rb |