Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct spelling mistakes #342

Merged
merged 1 commit into from
Apr 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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