1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Add missing bracket to a selector's description when a class is specified

This commit is contained in:
Maximo Mussini 2017-05-18 19:37:48 -03:00
parent fb356c3f6d
commit fbf1283fa3

View file

@ -47,7 +47,7 @@ module Capybara
@description << " with#{" exact" if exact_text == true} text #{options[:text].inspect}" if options[:text]
@description << " with exact text #{options[:exact_text]}" if options[:exact_text].is_a?(String)
@description << " with id #{options[:id]}" if options[:id]
@description << " with classes #{Array(options[:class]).join(',')}]" if options[:class]
@description << " with classes [#{Array(options[:class]).join(',')}]" if options[:class]
@description << selector.description(options)
@description << " that also matches the custom filter block" if @filter_block
@description