Sha256: 4bc7e90fd944c07d8f7a9353eaa1568d9c920385ba142e8082bdf3f556575067
Contents?: true
Size: 718 Bytes
Versions: 4
Compression:
Stored size: 718 Bytes
Contents
require 'spec_helper' describe Trackerific::SOAP::WSDL do describe "::ROOT" do subject { Trackerific::SOAP::WSDL::ROOT } it "should reference the vendor/wsdl path" do subject.should =~ /vendor\/wsdl/ File.exists?(subject).should be_true end end describe "#path" do subject { described_class.path(filename) } context "with an invalid filename" do let(:filename) { 'invalid_file' } it "should raise a IOError" do expect { subject }.to raise_error IOError end end context "with a valid filename" do let(:filename) { 'fedex/TrackService_v8' } it { should =~ /#{Trackerific::SOAP::WSDL::ROOT}\/#{filename}\.wsdl/ } end end end
Version data entries
4 entries across 4 versions & 1 rubygems