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

Version Path
onix-0.9.5 spec/lists_spec.rb
onix-0.9.4 spec/lists_spec.rb
milkfarm-onix-0.8.13 spec/lists_spec.rb
milkfarm-onix-0.8.12 spec/lists_spec.rb
onix-0.9.3 spec/lists_spec.rb
onix-0.9.2 spec/lists_spec.rb
onix-0.9.1 spec/lists_spec.rb
milkfarm-onix-0.8.11 spec/lists_spec.rb
milkfarm-onix-0.8.10 spec/lists_spec.rb
onix-0.9.0 spec/lists_spec.rb
milkfarm-onix-0.8.9 spec/lists_spec.rb
milkfarm-onix-0.8.8 spec/lists_spec.rb
milkfarm-onix-0.8.7 spec/lists_spec.rb
onix-0.8.5 spec/lists_spec.rb