Sha256: 2f02c2333e8490997677fdfaab1835ad289cbd183e2b0834983af84d78fc4116
Contents?: true
Size: 772 Bytes
Versions: 4
Compression:
Stored size: 772 Bytes
Contents
require 'spec/spec_helper' # Require the gem require 'lib/kashflow_api' describe KashflowApi::Supplier do before :each do default_config end it "should find a supplier" do KashflowApi::Supplier.find(test_data("supplier_code")).should be_a KashflowApi::Supplier KashflowApi::Supplier.find_by_supplier_code(test_data("supplier_code")).should be_a KashflowApi::Supplier end it "should return an array for .all" do all = KashflowApi::Supplier.all all.should be_a Array all.first.should be_a KashflowApi::Supplier end it "should find a supplier by kashflowid" do KashflowApi::Supplier.find_by_supplier_id(test_data("supplier_id")).should be_a KashflowApi::Supplier end end
Version data entries
4 entries across 4 versions & 1 rubygems