Skip to content

Commit

Permalink
Merge pull request #235 from mvz/spelling-fix
Browse files Browse the repository at this point in the history
Fix spelling of ambiguous in specs
  • Loading branch information
mvz authored May 12, 2024
2 parents 922ea2f + 916a9b5 commit a1f9831
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ambigous>
<ambiguous>
<my-items>
<item>
<name>My first item</name>
Expand All @@ -19,4 +19,4 @@
<name>Other item</name>
</item>
</others-items>
</ambigous>
</ambiguous>
4 changes: 2 additions & 2 deletions spec/happymapper/anonymous_mapper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
end

context "with element names with special characters" do
let(:parsed_result) { anonymous_mapper.parse fixture_file("ambigous_items.xml") }
let(:parsed_result) { anonymous_mapper.parse fixture_file("ambiguous_items.xml") }

it "creates accessor methods with similar names" do
expect(parsed_result.my_items.item).to be_a Array
Expand Down Expand Up @@ -87,7 +87,7 @@
end

context "with several elements nested deeply" do
let(:parsed_result) { anonymous_mapper.parse fixture_file("ambigous_items.xml") }
let(:parsed_result) { anonymous_mapper.parse fixture_file("ambiguous_items.xml") }

it "parses the entire relationship" do
expect(parsed_result.my_items.item.first.item.name).to eq("My first internal item")
Expand Down
8 changes: 4 additions & 4 deletions spec/happymapper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ class Record
end
end

module AmbigousItems
module AmbiguousItems
class Item
include HappyMapper

Expand Down Expand Up @@ -1082,9 +1082,9 @@ class Thing
end
end

it "parses ambigous items" do
items = AmbigousItems::Item.parse(fixture_file("ambigous_items.xml"),
xpath: "/ambigous/my-items")
it "parses ambiguous items" do
items = AmbiguousItems::Item.parse(fixture_file("ambiguous_items.xml"),
xpath: "/ambiguous/my-items")
expect(items.map(&:name)).to eq(%w(first second third).map { |s| "My #{s} item" })
end

Expand Down

0 comments on commit a1f9831

Please sign in to comment.