spec/simply/html_builder/indentation_spec.rb in simply-0.1.3 vs spec/simply/html_builder/indentation_spec.rb in simply-0.2.3
- old
+ new
@@ -1,25 +1,25 @@
require File.dirname(__FILE__) + "/../../spec_helper"
module Simply
describe HTMLBuilder, "with indentation" do
before(:each) do
- @builder = HTMLBuilder.new(:indent => true)
+ @builder = HTMLBuilder.new(:indented => true)
end
- it "should be indented when passed :indent => true" do
- builder = HTMLBuilder.new(:indent => true)
+ it "should be indented when passed :indented => true" do
+ builder = HTMLBuilder.new(:indented => true)
builder.should be_indented
end
- it "should not be indented when passed :indent => false" do
- builder = HTMLBuilder.new(:indent => false)
+ it "should not be indented when passed :indented => false" do
+ builder = HTMLBuilder.new(:indented => false)
builder.should_not be_indented
end
- it "should not be indented by default" do
+ it "should be indented by default" do
builder = HTMLBuilder.new
- builder.should_not be_indented
+ builder.should be_indented
end
it "should indent html when indented = true, and given a block structure" do
@builder.html do
body do