Skip to content

Commit

Permalink
Fix trivial but widespread spelling error: "attibutes"
Browse files Browse the repository at this point in the history
Conflicts:

	spec/set_spec.rb
	spec/sl_product_spec.rb
  • Loading branch information
tim authored and yob committed Oct 17, 2010
1 parent e881977 commit 63dedbb
Show file tree
Hide file tree
Showing 23 changed files with 46 additions and 46 deletions.
4 changes: 2 additions & 2 deletions spec/apa_product_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@product_node = @doc.root
end

specify "should provide read access to attibutes" do
specify "should provide read access to attributes" do
@product = ONIX::Product.from_xml(@product_node.to_s)
@apa = ONIX::APAProduct.new(@product)

Expand All @@ -26,7 +26,7 @@
@apa.pack_quantity.should eql(12)
end

specify "should provide write access to attibutes" do
specify "should provide write access to attributes" do
apa = ONIX::APAProduct.new

apa.notification_type = 3
Expand Down
4 changes: 2 additions & 2 deletions spec/audience_range_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
aud.to_xml.to_s[0,15].should eql("<AudienceRange>")
end

specify "should provide read access to first level attibutes" do
specify "should provide read access to first level attributes" do
aud = ONIX::AudienceRange.from_xml(@root.to_s)

aud.audience_range_qualifier.should eql(11)
Expand All @@ -28,7 +28,7 @@
aud.audience_range_values[1].should eql(5)
end

specify "should provide write access to first level attibutes" do
specify "should provide write access to first level attributes" do
aud = ONIX::AudienceRange.new

aud.audience_range_qualifier = 12
Expand Down
4 changes: 2 additions & 2 deletions spec/contributor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
header.to_xml.to_s[0,13].should eql("<Contributor>")
end

specify "should provide read access to first level attibutes" do
specify "should provide read access to first level attributes" do
contrib = ONIX::Contributor.from_xml(@root.to_s)

contrib.contributor_role.should eql("A01")
contrib.person_name_inverted.should eql("SHAPIRO")
contrib.sequence_number.should eql(1)
end

specify "should provide write access to first level attibutes" do
specify "should provide write access to first level attributes" do
contrib = ONIX::Contributor.new

contrib.contributor_role = "A02"
Expand Down
4 changes: 2 additions & 2 deletions spec/header_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
header.to_xml.to_s[0,8].should eql("<Header>")
end

specify "should provide read access to first level attibutes" do
specify "should provide read access to first level attributes" do
header = ONIX::Header.from_xml(@header_node.to_s)

header.from_ean_number.should eql("1111111111111")
Expand All @@ -42,7 +42,7 @@
header.default_class_of_trade.should eql("f")
end

specify "should provide write access to first level attibutes" do
specify "should provide write access to first level attributes" do
header = ONIX::Header.new

header.from_ean_number = "1111111111111"
Expand Down
4 changes: 2 additions & 2 deletions spec/imprint_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
imp.to_xml.to_s[0,9].should eql("<Imprint>")
end

specify "should provide read access to first level attibutes" do
specify "should provide read access to first level attributes" do
imp = ONIX::Imprint.from_xml(@root.to_s)

imp.imprint_name.should eql("Oxford University Press UK")
end

specify "should provide write access to first level attibutes" do
specify "should provide write access to first level attributes" do
imp = ONIX::Imprint.new

imp.imprint_name = "Paulist Press"
Expand Down
4 changes: 2 additions & 2 deletions spec/language_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
lan.to_xml.to_s[0,10].should eql("<Language>")
end

specify "should provide read access to first level attibutes" do
specify "should provide read access to first level attributes" do
lan = ONIX::Language.from_xml(@root.to_s)

lan.language_role.should eql(1)
lan.language_code.should eql("eng")
lan.country_code.should eql("US")
end

specify "should provide write access to first level attibutes" do
specify "should provide write access to first level attributes" do
lan = ONIX::Language.new

lan.language_role = 2
Expand Down
4 changes: 2 additions & 2 deletions spec/market_representation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
rep.to_xml.to_s[0,22].should eql("<MarketRepresentation>")
end

specify "should provide read access to first level attibutes" do
specify "should provide read access to first level attributes" do
rep = ONIX::MarketRepresentation.from_xml(@root.to_s)

rep.agent_name.should eql("Allen & Unwin")
rep.agent_role.should eql(7)
end

specify "should provide write access to first level attibutes" do
specify "should provide write access to first level attributes" do
rep = ONIX::MarketRepresentation.new

rep.agent_name = "Rainbow Book Agencies"
Expand Down
4 changes: 2 additions & 2 deletions spec/measure_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
m.to_xml.to_s[0,9].should eql("<Measure>")
end

specify "should provide read access to first level attibutes" do
specify "should provide read access to first level attributes" do
m = ONIX::Measure.from_xml(@root.to_s)

m.measure_type_code.should eql(1)
m.measurement.should eql(210)
m.measure_unit_code.should eql("mm")
end

specify "should provide write access to first level attibutes" do
specify "should provide write access to first level attributes" do
m = ONIX::Measure.new

m.measure_type_code = 1
Expand Down
4 changes: 2 additions & 2 deletions spec/media_file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
mf.to_xml.to_s[0,11].should eql("<MediaFile>")
end

specify "should provide read access to first level attibutes" do
specify "should provide read access to first level attributes" do
mf = ONIX::MediaFile.from_xml(@root.to_s)
mf.media_file_type_code.should eql(4)
mf.media_file_link_type_code.should eql(1)
mf.media_file_link.should eql("http://www.allenandunwin.com/BookCovers/resized_9788888028729_224_297_FitSquare.jpg")
end

specify "should provide write access to first level attibutes" do
specify "should provide write access to first level attributes" do
mf = ONIX::MediaFile.new

mf.media_file_type_code = 2
Expand Down
4 changes: 2 additions & 2 deletions spec/other_text_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
ot.to_xml.to_s[0,11].should eql("<OtherText>")
end

specify "should provide read access to first level attibutes" do
specify "should provide read access to first level attributes" do
ot = ONIX::OtherText.from_xml(@root.to_s)

ot.text_type_code.should eql(2)
ot.text[0,7].should eql("A woman")
end

specify "should provide write access to first level attibutes" do
specify "should provide write access to first level attributes" do
ot = ONIX::OtherText.new

ot.text_type_code = 2
Expand Down
4 changes: 2 additions & 2 deletions spec/price_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
p.to_xml.to_s[0,7].should eql("<Price>")
end

specify "should provide read access to first level attibutes" do
specify "should provide read access to first level attributes" do
p = ONIX::Price.from_xml(@root.to_s)

p.price_type_code.should eql(2)
p.price_amount.should eql(BigDecimal.new("7.5"))
end

specify "should provide write access to first level attibutes" do
specify "should provide write access to first level attributes" do
p = ONIX::Price.new

p.price_type_code = 1
Expand Down
4 changes: 2 additions & 2 deletions spec/product_identifier_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
id.to_xml.to_s[0,19].should eql("<ProductIdentifier>")
end

specify "should provide read access to first level attibutes" do
specify "should provide read access to first level attributes" do
id = ONIX::ProductIdentifier.from_xml(@root.to_s)

id.product_id_type.should eql(2)
id.id_value.should eql("0858198363")
end

specify "should provide write access to first level attibutes" do
specify "should provide write access to first level attributes" do
id = ONIX::ProductIdentifier.new

id.product_id_type = 2
Expand Down
4 changes: 2 additions & 2 deletions spec/product_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@product_node = @doc.root
end

specify "should provide read access to first level attibutes" do
specify "should provide read access to first level attributes" do
product = ONIX::Product.from_xml(@product_node.to_s)

product.record_reference.should eql("365-9780194351898")
Expand Down Expand Up @@ -52,7 +52,7 @@
product.measurements.size.should eql(1)
end

specify "should provide write access to first level attibutes" do
specify "should provide write access to first level attributes" do
product = ONIX::Product.new

product.notification_type = 3
Expand Down
4 changes: 2 additions & 2 deletions spec/publisher_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
pub.to_xml.to_s[0,11].should eql("<Publisher>")
end

specify "should provide read access to first level attibutes" do
specify "should provide read access to first level attributes" do
pub = ONIX::Publisher.from_xml(@root.to_s)
pub.publishing_role.should eql(1)
pub.publisher_name.should eql("Desbooks Publishing")
end

specify "should provide write access to first level attibutes" do
specify "should provide write access to first level attributes" do
pub = ONIX::Publisher.new

pub.publisher_name = "Paulist Press"
Expand Down
4 changes: 2 additions & 2 deletions spec/sales_restriction_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
sr.to_xml.to_s[0,18].should eql("<SalesRestriction>")
end

specify "should provide read access to first level attibutes" do
specify "should provide read access to first level attributes" do
sr = ONIX::SalesRestriction.from_xml(@root.to_s)

sr.sales_restriction_type.should eql(0)
end

specify "should provide write access to first level attibutes" do
specify "should provide write access to first level attributes" do
sr = ONIX::SalesRestriction.new

sr.sales_restriction_type = 1
Expand Down
4 changes: 2 additions & 2 deletions spec/sender_identifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
id.to_xml.to_s[0,18].should eql("<SenderIdentifier>")
end

specify "should provide read access to first level attibutes" do
specify "should provide read access to first level attributes" do
id = ONIX::SenderIdentifier.from_xml(@root.to_s)

id.sender_id_type.should eql(1)
id.id_value.should eql("123456")
end

specify "should provide write access to first level attibutes" do
specify "should provide write access to first level attributes" do
id = ONIX::SenderIdentifier.new

id.sender_id_type = 1
Expand Down
4 changes: 2 additions & 2 deletions spec/series_identifier_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
series.to_xml.to_s[0,18].should eql("<SeriesIdentifier>")
end

specify "should provide read access to first level attibutes" do
specify "should provide read access to first level attributes" do
series = ONIX::SeriesIdentifier.from_xml(@root.to_s)

series.series_id_type.should eql(1)
series.id_value.should eql("10001")
end

specify "should provide write access to first level attibutes" do
specify "should provide write access to first level attributes" do
series = ONIX::SeriesIdentifier.new

series.series_id_type = 9
Expand Down
4 changes: 2 additions & 2 deletions spec/series_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
series.to_xml.to_s[0,8].should eql("<Series>")
end

specify "should provide read access to first level attibutes" do
specify "should provide read access to first level attributes" do
series = ONIX::Series.from_xml(@root.to_s)

series.title_of_series.should eql("Citizens and Their Governments")
end

specify "should provide write access to first level attibutes" do
specify "should provide write access to first level attributes" do
series = ONIX::Series.new

series.title_of_series = "Cool Science Careers"
Expand Down
4 changes: 2 additions & 2 deletions spec/stock_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
s.to_xml.to_s[0,7].should eql("<Stock>")
end

specify "should provide read access to first level attibutes" do
specify "should provide read access to first level attributes" do
s = ONIX::Stock.from_xml(@root.to_s)

# note that these fields *should* be numeric according to the ONIX spec,
Expand All @@ -25,7 +25,7 @@
s.on_order.should eql("0")
end

specify "should provide write access to first level attibutes" do
specify "should provide write access to first level attributes" do
s = ONIX::Stock.new

s.on_hand = "123"
Expand Down
4 changes: 2 additions & 2 deletions spec/subject_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
sub.to_xml.to_s[0,9].should eql("<Subject>")
end

specify "should provide read access to first level attibutes" do
specify "should provide read access to first level attributes" do
sub = ONIX::Subject.from_xml(@root.to_s)
sub.subject_scheme_id.should eql(3)
sub.subject_scheme_name.should eql("RBA Subjects")
sub.subject_code.should eql("AABB")
end

specify "should provide write access to first level attibutes" do
specify "should provide write access to first level attributes" do
sub = ONIX::Subject.new

sub.subject_scheme_id = 2
Expand Down
4 changes: 2 additions & 2 deletions spec/supply_detail_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
sd.to_xml.to_s[0,14].should eql("<SupplyDetail>")
end

specify "should provide read access to first level attibutes" do
specify "should provide read access to first level attributes" do
sd = ONIX::SupplyDetail.from_xml(@root.to_s)

sd.supplier_name.should eql("Rainbow Book Agencies")
Expand All @@ -28,7 +28,7 @@
sd.prices.size.should eql(1)
end

specify "should provide write access to first level attibutes" do
specify "should provide write access to first level attributes" do
sd = ONIX::SupplyDetail.new

sd.supplier_name = "RBA"
Expand Down
4 changes: 2 additions & 2 deletions spec/title_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
t.to_xml.to_s[0,7].should eql("<Title>")
end

specify "should provide read access to first level attibutes" do
specify "should provide read access to first level attributes" do
t = ONIX::Title.from_xml(@root.to_s)
t.title_type.should eql(1)
t.title_text.should eql("Good Grief")
t.subtitle.should eql("A Constructive Approach to the Problem of Loss")
end

specify "should provide write access to first level attibutes" do
specify "should provide write access to first level attributes" do
t = ONIX::Title.new

t.title_type = 1
Expand Down
4 changes: 2 additions & 2 deletions spec/website_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
web.to_xml.to_s[0,9].should eql("<Website>")
end

specify "should provide read access to first level attibutes" do
specify "should provide read access to first level attributes" do
web = ONIX::Website.from_xml(@root.to_s)

web.website_role.should eql(1)
web.website_link.should eql("http://www.rainbowbooks.com.au")
end

specify "should provide write access to first level attibutes" do
specify "should provide write access to first level attributes" do
web = ONIX::Website.new

web.website_role = 2
Expand Down

0 comments on commit 63dedbb

Please sign in to comment.