From a4984f7bd4908db44ba1003b1cef39bf3953f9da Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 10 Apr 2022 18:03:11 +0100 Subject: [PATCH] Correct spelling mistakes --- lib/arbre/context.rb | 4 ++-- spec/arbre/unit/element_finder_methods_spec.rb | 4 ++-- spec/arbre/unit/html/tag_spec.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/arbre/context.rb b/lib/arbre/context.rb index 5bee56c0..b197e630 100644 --- a/lib/arbre/context.rb +++ b/lib/arbre/context.rb @@ -30,7 +30,7 @@ class Context < Element # Initialize a new Arbre::Context # # @param [Hash] assigns A hash of objecs that you would like to be - # availble as local variables within the Context + # available as local variables within the Context # # @param [Object] helpers An object that has methods on it which will become # instance methods within the context. @@ -100,7 +100,7 @@ def with_current_arbre_element(tag) # Caches the rendered HTML so that we don't re-render just to - # get the content lenght or to delegate a method to the HTML + # get the content length or to delegate a method to the HTML def cached_html if defined?(@cached_html) @cached_html diff --git a/spec/arbre/unit/element_finder_methods_spec.rb b/spec/arbre/unit/element_finder_methods_spec.rb index 4fb837de..f69b2608 100644 --- a/spec/arbre/unit/element_finder_methods_spec.rb +++ b/spec/arbre/unit/element_finder_methods_spec.rb @@ -24,7 +24,7 @@ expect(elements[0]).to be_instance_of(Arbre::HTML::Li) end - it "should return multple child elements" do + it "should return multiple child elements" do html = arbre do ul li @@ -78,7 +78,7 @@ expect(elements[0]).to be_instance_of(Arbre::HTML::Div) end - it "should return multple child elements" do + it "should return multiple child elements" do html = arbre do div class: "some_class" div class: "my_class" diff --git a/spec/arbre/unit/html/tag_spec.rb b/spec/arbre/unit/html/tag_spec.rb index b691a290..40a47014 100644 --- a/spec/arbre/unit/html/tag_spec.rb +++ b/spec/arbre/unit/html/tag_spec.rb @@ -99,7 +99,7 @@ def default_id_for_prefix expect(tag.class_names).to eq("hello_world") end - it "should seperate classes with space" do + it "should separate classes with space" do tag.add_class "hello world" expect(tag.class_list.size).to eq(2) end