small fixes
This commit is contained in:
parent
3b6863a124
commit
9579887857
|
@ -182,7 +182,7 @@ def within_any(search, &block)
|
|||
|
||||
nodes.each_with_index do |node, index|
|
||||
begin
|
||||
within("#{search}:nth-child(#{index + 1})", &block)
|
||||
within(node, &block)
|
||||
return true
|
||||
rescue RSpec::Expectations::ExpectationNotMetError, Capybara::ElementNotFound => e
|
||||
exceptions << e
|
||||
|
|
|
@ -21,7 +21,9 @@ module SemanticRailsViewHelpers
|
|||
options = args.pop
|
||||
end
|
||||
|
||||
link_to t(".#{route}"), send("#{route}_path", *args), semantic_link_data(route).merge(options)
|
||||
label = options.delete(:label) || t(".#{route}")
|
||||
|
||||
link_to label, send("#{route}_path", *args), semantic_link_data(route).merge(options)
|
||||
end
|
||||
|
||||
def link_to_collection(route, options = {})
|
||||
|
|
Loading…
Reference in New Issue