Sha256: 4b77a03ff3e717b654134847850b0f26eb332890648e7c340eccbfa382cbb2b6
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 KB
Contents
require 'bundler/setup' Bundler.setup require 'coveralls' Coveralls.wear! require "rspec" require "set" require 'ship_compliant' require "savon/mock/spec_helper" require "pry" RSpec.configure do |config| config.include Savon::SpecHelper # Run specs in random order to surface order dependencies. If you find an # order dependency and want to debug it, you can fix the order by providing # the seed, which is printed after each run. # --seed 1234 config.order = "random" config.before(:each) do ShipCompliant.configuration = nil ShipCompliant.ship_compliant_client = nil ShipCompliant.configure do |c| c.partner_key = 'abc-123' c.username = 'bob@example.com' c.password = 'secret' c.log = false c.wsdl = 'spec/fixtures/coreservice.wsdl' end end end shared_examples_for "BaseResult" do context "success?" do it "returns true when the response was successful" do result = described_class.new({ response_status: 'Success' }) result.success?.should be_true end end context "failure?" do it "returns the opposite of success?" do result = described_class.new({}) result.stub(:success?) { false } result.failure?.should be_true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ship_compliant-0.2.0 | spec/spec_helper.rb |