incompatibilities/spec/render/attribute_spec.md in faml-0.3.5 vs incompatibilities/spec/render/attribute_spec.md in faml-0.3.6

- old
+ new

@@ -56,12 +56,11 @@ ``` # [./spec/render/attribute_spec.rb:71](../../../spec/render/attribute_spec.rb#L71) ## Input ```haml -- v = [1, nil, false, true] -%span{class: v} +%span{class: [1, nil, false, true]} ``` ## Faml, Haml ```html <span class='1 true'></span> @@ -75,12 +74,12 @@ ``` # [./spec/render/attribute_spec.rb:71](../../../spec/render/attribute_spec.rb#L71) ## Input ```haml -- h = { class: [1, nil, false, true] } -%span{h} +- v = [1, nil, false, true] +%span{class: v} ``` ## Faml, Haml ```html <span class='1 true'></span> @@ -94,11 +93,12 @@ ``` # [./spec/render/attribute_spec.rb:71](../../../spec/render/attribute_spec.rb#L71) ## Input ```haml -%span{class: [1, nil, false, true]} +- h = { class: [1, nil, false, true] } +%span{h} ``` ## Faml, Haml ```html <span class='1 true'></span> @@ -130,12 +130,11 @@ ``` # [./spec/render/attribute_spec.rb:85](../../../spec/render/attribute_spec.rb#L85) ## Input ```haml -- v = [1, nil, false, true] -%span{id: v} +%span{id: [1, nil, false, true]} ``` ## Faml, Haml ```html <span id='1_true'></span> @@ -149,12 +148,12 @@ ``` # [./spec/render/attribute_spec.rb:85](../../../spec/render/attribute_spec.rb#L85) ## Input ```haml -- h = { id: [1, nil, false, true] } -%span{h} +- v = [1, nil, false, true] +%span{id: v} ``` ## Faml, Haml ```html <span id='1_true'></span> @@ -168,11 +167,12 @@ ``` # [./spec/render/attribute_spec.rb:85](../../../spec/render/attribute_spec.rb#L85) ## Input ```haml -%span{id: [1, nil, false, true]} +- h = { id: [1, nil, false, true] } +%span{h} ``` ## Faml, Haml ```html <span id='1_true'></span> @@ -201,11 +201,11 @@ ```html <span class='x"y&#x0027;z'>hello</span> ``` -# [./spec/render/attribute_spec.rb:104](../../../spec/render/attribute_spec.rb#L104) +# [./spec/render/attribute_spec.rb:109](../../../spec/render/attribute_spec.rb#L109) ## Input (with options={:format=>:xhtml}) ```haml - foo = true %span{foo: foo, bar: 1} hello ``` @@ -220,11 +220,11 @@ ```html <span bar='1' foo='true'>hello</span> ``` -# [./spec/render/attribute_spec.rb:104](../../../spec/render/attribute_spec.rb#L104) +# [./spec/render/attribute_spec.rb:109](../../../spec/render/attribute_spec.rb#L109) ## Input (with options={:format=>:xhtml}) ```haml - h = {foo: true, bar: 1} %span{h} hello ``` @@ -239,11 +239,11 @@ ```html <span foo bar='1'>hello</span> ``` -# [./spec/render/attribute_spec.rb:111](../../../spec/render/attribute_spec.rb#L111) +# [./spec/render/attribute_spec.rb:116](../../../spec/render/attribute_spec.rb#L116) ## Input ```haml %span{foo: {bar: 1+2}} hello ``` @@ -257,11 +257,11 @@ ```html <span foo-bar='3'>hello</span> ``` -# [./spec/render/attribute_spec.rb:115](../../../spec/render/attribute_spec.rb#L115) +# [./spec/render/attribute_spec.rb:120](../../../spec/render/attribute_spec.rb#L120) ## Input ```haml - attrs = { foo: 1, bar: { hoge: :fuga }, baz: true } %span{attrs} hello @@ -283,11 +283,11 @@ ```html <span foo='1' bar-hoge='fuga' baz>hello</span> ``` -# [./spec/render/attribute_spec.rb:129](../../../spec/render/attribute_spec.rb#L129) +# [./spec/render/attribute_spec.rb:134](../../../spec/render/attribute_spec.rb#L134) ## Input ```haml - data = { foo: 1 } %span{foo: {bar: "x#{1}y"}} hello @@ -303,11 +303,11 @@ ```html <span foo-bar='x1y'>hello</span> ``` -# [./spec/render/attribute_spec.rb:136](../../../spec/render/attribute_spec.rb#L136) +# [./spec/render/attribute_spec.rb:141](../../../spec/render/attribute_spec.rb#L141) ## Input ```haml %span{foo: {bar: 1+2}} hello ``` @@ -321,11 +321,11 @@ ```html <span foo-bar='3'>hello</span> ``` -# [./spec/render/attribute_spec.rb:159](../../../spec/render/attribute_spec.rb#L159) +# [./spec/render/attribute_spec.rb:164](../../../spec/render/attribute_spec.rb#L164) ## Input ```haml %span{data: {foo: 1, bar: 'baz', :hoge => :fuga, k1: { k2: 'v3' }}} hello ``` @@ -339,11 +339,11 @@ ```html <span data-foo='1' data-bar='baz' data-hoge='fuga' data-k1-k2='v3'>hello</span> ``` -# [./spec/render/attribute_spec.rb:167](../../../spec/render/attribute_spec.rb#L167) +# [./spec/render/attribute_spec.rb:172](../../../spec/render/attribute_spec.rb#L172) ## Input ```haml %span{data: {foo: 1, bar: 2+3}} hello ``` @@ -357,11 +357,11 @@ ```html <span data-foo='1' data-bar='5'>hello</span> ``` -# [./spec/render/attribute_spec.rb:171](../../../spec/render/attribute_spec.rb#L171) +# [./spec/render/attribute_spec.rb:176](../../../spec/render/attribute_spec.rb#L176) ## Input ```haml - data = { foo: 1, bar: 2 } %span{data: data} hello @@ -377,11 +377,11 @@ ```html <span data-foo='1' data-bar='2'>hello</span> ``` -# [./spec/render/attribute_spec.rb:189](../../../spec/render/attribute_spec.rb#L189) +# [./spec/render/attribute_spec.rb:194](../../../spec/render/attribute_spec.rb#L194) ## Input ```haml %span{b: __LINE__, a: __LINE__} @@ -397,11 +397,11 @@ ```html <span a='1' b='1'></span> ``` -# [./spec/render/attribute_spec.rb:196](../../../spec/render/attribute_spec.rb#L196) +# [./spec/render/attribute_spec.rb:201](../../../spec/render/attribute_spec.rb#L201) ## Input ```haml %span{"foo\0bar" => "hello"} ``` @@ -415,11 +415,11 @@ ```html <span foo\0bar='hello'></span> ``` -# [./spec/render/attribute_spec.rb:196](../../../spec/render/attribute_spec.rb#L196) +# [./spec/render/attribute_spec.rb:201](../../../spec/render/attribute_spec.rb#L201) ## Input ```haml - val = "hello" %span{"foo\0bar" => val} @@ -435,10 +435,10 @@ ```html <span foo\0bar='hello'></span> ``` -# [./spec/render/attribute_spec.rb:196](../../../spec/render/attribute_spec.rb#L196) +# [./spec/render/attribute_spec.rb:201](../../../spec/render/attribute_spec.rb#L201) ## Input ```haml - key = "foo\0bar" - val = "hello" %span{key => val}