Permalink
Browse files

Get rid of empty string requirements

  • Loading branch information...
1 parent 448e6c9 commit 5904cd12be9e3f86ba776ffc006839cadb5e6cfb Joe Fiorini committed Jan 15, 2010
Showing with 0 additions and 10 deletions.
  1. +0 −2 lib/totally_tabular/html_helper.rb
  2. +0 −8 spec/lib/totally_tabular/html_helper_spec.rb
@@ -12,8 +12,6 @@ def tag(tag, content="", attributes={})
attr_string = ' %s' % attributes.map { |attr| '%s="%s"' % attr }.join(" ")
end
"<%s%s>%s</%s>" % [tag, attr_string, content, tag]
- else
- ""
end
end
end
@@ -13,10 +13,6 @@
@helper.should_not be_nil
end
- it "returns empty string" do
- @helper.tag("").should be_empty
- end
-
it "returns an empty table tag" do
@helper.tag(:table).should == "<table></table>"
end
@@ -37,10 +33,6 @@
@helper.tag(:strong, "blah").should == "<strong>blah</strong>"
end
- it "returns empty if tag is invalid" do
- @helper.tag("blah diddy").should == ""
- end
-
it "renders with a class specified" do
@helper.tag(:strong, "blah", :class => "diddy").should =~ /class=\"diddy\"/
end

0 comments on commit 5904cd1

Please sign in to comment.