spec/helpers_spec.rb in sdoc-2.1.0 vs spec/helpers_spec.rb in sdoc-2.2.0
- old
+ new
@@ -17,16 +17,16 @@
[ %(<a href="../Base.html">Base</a>), "Base" ],
[ %(Some<br>\ntext), "Some\ntext" ]
]
strings.each do |(html, stripped)|
- @helpers.strip_tags(html).must_equal stripped
+ _(@helpers.strip_tags(html)).must_equal stripped
end
end
end
describe "#truncate" do
it "should truncate the given text around a given length" do
- @helpers.truncate("Hello world", length: 5).must_equal "Hello."
+ _(@helpers.truncate("Hello world", length: 5)).must_equal "Hello."
end
end
end