Skip to content

Commit

Permalink
Correct spelling mistakes (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardBetts authored Apr 10, 2022
1 parent 1334df1 commit 99dcc34
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/arbre/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions spec/arbre/unit/element_finder_methods_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion spec/arbre/unit/html/tag_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 99dcc34

Please sign in to comment.