Sha256: 96e4ec1f9ca1e4583b45c47df2f88ee195b16b7642b0d7148ae471f4dd518824

Contents?: true

Size: 769 Bytes

Versions: 1

Compression:

Stored size: 769 Bytes

Contents

# coding: utf-8

require File.dirname(__FILE__) + '/spec_helper.rb'

context 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

context 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

context 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

1 entries across 1 versions & 1 rubygems

Version Path
onix-0.8.4 spec/lists_spec.rb