Skip to content

Commit

Permalink
Fix ToolboxBuilder not using li tag
Browse files Browse the repository at this point in the history
  • Loading branch information
graudeejs committed Jan 13, 2015
1 parent 03d060c commit e1f7d86
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions releaf-core/app/helpers/releaf/builders/toolbox.rb
Expand Up @@ -2,12 +2,14 @@ module Releaf::Builders::Toolbox

def output
safe_join do
items
items.map do |item|
tag('li', item)
end
end
end

def items
[]
end

end
end
2 changes: 1 addition & 1 deletion releaf-core/spec/helpers/builders/toolbox_spec.rb
Expand Up @@ -16,7 +16,7 @@ class ToolboxTestIncluder
describe "#output" do
it "returns safely joined items" do
allow(subject).to receive(:items).and_return([ '<', ActiveSupport::SafeBuffer.new(">")])
expect(subject.output).to eq("&lt;>")
expect(subject.output).to eq("<li>&lt;</li><li>></li>")
end
end

Expand Down

0 comments on commit e1f7d86

Please sign in to comment.