@@ -7,42 +7,42 @@ module Matchers
77 module Layout
88 def have_action_item ( text , options = { } )
99 opts = Util . options_with_text ( text , options )
10- have_selector ( action_item_selector , opts )
10+ have_selector ( action_item_selector , ** opts )
1111 end
1212
1313 def have_page_title ( text , options = { } )
1414 opts = Util . options_with_text ( text , options )
15- have_selector ( page_title_selector , opts )
15+ have_selector ( page_title_selector , ** opts )
1616 end
1717
1818 def have_flash_message ( text , options = { } )
1919 type = options . delete ( :type )
2020 opts = Util . options_with_text ( text , options )
2121 selector = flash_message_selector ( type )
22- have_selector ( selector , opts )
22+ have_selector ( selector , ** opts )
2323 end
2424
2525 def have_footer ( options = { } )
2626 selector = footer_selector
27- have_selector ( selector , options )
27+ have_selector ( selector , ** options )
2828 end
2929
3030 def have_panel ( title , options = { } )
3131 title_selector = "#{ panel_selector } > #{ panel_title_selector } "
3232 opts = Util . options_with_text ( title , options )
33- have_selector ( title_selector , opts )
33+ have_selector ( title_selector , ** opts )
3434 end
3535
3636 def have_sidebar ( title , options = { } )
3737 title_selector = "#{ sidebar_selector } #{ panel_selector } > #{ panel_title_selector } "
3838 opts = Util . options_with_text ( title , options )
39- have_selector ( title_selector , opts )
39+ have_selector ( title_selector , ** opts )
4040 end
4141
4242 def have_batch_action ( title , exact : true )
4343 selector = "#{ dropdown_list_selector } #{ batch_action_selector } "
4444 opts = Util . options_with_text ( title , exact : exact )
45- have_selector ( selector , opts )
45+ have_selector ( selector , ** opts )
4646 end
4747 end
4848 end
0 commit comments