test/helpers/test_link_to.rb in nanoc-3.7.3 vs test/helpers/test_link_to.rb in nanoc-3.7.4
- old
+ new
@@ -52,14 +52,14 @@
)
end
def test_link_to_to_nil_item_or_item_rep
obj = Object.new
- def obj.path ; nil ; end
+ def obj.path; nil; end
assert_raises RuntimeError do
- link_to("Some Text", obj)
+ link_to('Some Text', obj)
end
end
def test_link_to_unless_current_current
# Create item
@@ -208,10 +208,10 @@
def test_examples_link_to
# Parse
YARD.parse(LIB_DIR + '/nanoc/helpers/link_to.rb')
# Mock
- @items = [ mock, mock, mock ]
+ @items = [mock, mock, mock]
@items[0].stubs(:identifier).returns('/about/')
@items[0].stubs(:path).returns('/about.html')
@items[1].stubs(:identifier).returns('/software/')
@items[1].stubs(:path).returns('/software.html')
@items[2].stubs(:identifier).returns('/software/nanoc/')