Sha256: 755e586f8f6aba6afd9b1dfcbfb645991187c3a58793192857d449c0611a8032
Contents?: true
Size: 772 Bytes
Versions: 14
Compression:
Stored size: 772 Bytes
Contents
# coding: utf-8 require File.dirname(__FILE__) + '/spec_helper.rb' describe ONIX::Lists, "list method" do it "should return a hash containing the ProductForm code list" do forms = ONIX::Lists.list(7) forms.should be_a(Hash) forms["BB"].should eql("Hardback") end end describe ONIX::Lists, "product_form shortcut method" do it "should return a hash containing the ProductForm code list" do forms = ONIX::Lists.product_form forms.should be_a(Hash) forms["BB"].should eql("Hardback") end end describe ONIX::Lists, "PRODUCT_FORM shortcut constant" do it "should return a hash containing the ProductForm code list" do forms = ONIX::Lists::PRODUCT_FORM forms.should be_a(Hash) forms["BB"].should eql("Hardback") end end
Version data entries
14 entries across 14 versions & 2 rubygems