Skip to content

Commit b9553a6

Browse files
committed
Fix tests
1 parent 4c57c43 commit b9553a6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spec/htmless_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,15 @@ def id;
199199
end
200200

201201
it "#data-secret" do
202-
quick_render { div('a').data_secret("I won't tell.") }.should == '<div data-secret="I won\'t tell.">a</div>'
202+
quick_render { div('a').data_secret("I do not tell.") }.should == '<div data-secret="I do not tell.">a</div>'
203203
end
204204

205205
it '#data' do
206206
quick_render { hr.data(:secret => true) }.should == '<hr data-secret="true" />'
207-
quick_render { div('a', :data => { :secret => "I won't tell." }) }.should ==
208-
'<div data-secret="I won\'t tell.">a</div>'
209-
quick_render { div('a').data(:secret => "I won't tell.") { text 'a' } }.should ==
210-
'<div data-secret="I won\'t tell.">a</div>'
207+
quick_render { div('a', :data => { :secret => "I do not tell." }) }.should ==
208+
'<div data-secret="I do not tell.">a</div>'
209+
quick_render { div('a').data(:secret => "I do not tell.") { text 'a' } }.should ==
210+
'<div data-secret="I do not tell.">a</div>'
211211
end
212212

213213
it 'tags should have all the attributes' do

0 commit comments

Comments
 (0)