Sha256: 4d74b041eae142f87ef78761b75cd8aa661ddebcc42f3bc24b3cd77ea7783440

Contents?: true

Size: 1.06 KB

Versions: 4

Compression:

Stored size: 1.06 KB

Contents

require 'rest-client' # REST
require 'erb' # Embedded ruby
require 'yaml' # Reading yaml
require 'rspec' # Testing framework
require 'rspec/its'
require 'savon' # SOAP
require 'nokogiri' # XPath
require 'date'

require 'soaspec/version'
require 'soaspec/basic_soap_handler'
require 'soaspec/tester'
require 'soaspec/exchange'
require 'soaspec/matchers'
require 'soaspec/shared_examples'
require 'soaspec/hash_methods'
require 'soaspec/spec_logger'

# Gem for handling SOAP and REST api tests
module Soaspec

  def self.hi
    puts 'Hello world!'
  end

  # Represents Environment parameters used in Soaspec tests
  module Environment

    # Used so that exchange class knows what context it's in
    def self.api_handler=(handler)
      @api_handler = handler
    end

    def self.api_handler
      @api_handler
    end

    # Whether to transform strings to keys automatically
    def self.always_use_keys=(use_keys)
      @always_use_keys = use_keys
    end

    def self.always_use_keys?
      @always_use_keys || true
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
soaspec-0.0.18 lib/soaspec.rb
soaspec-0.0.17 lib/soaspec.rb
soaspec-0.0.16 lib/soaspec.rb
soaspec-0.0.15 lib/soaspec.rb