lib/rspectacular/selectors/defaults.rb in rspectacular-0.23.0 vs lib/rspectacular/selectors/defaults.rb in rspectacular-0.23.1

- old
+ new

@@ -5,11 +5,12 @@ /the Facebook application/ => lambda do frame_element = find 'html#facebook div#pagelet_app_runner iframe' frame_element[:id] end, - /the flash(.*)/ => lambda do - flash_type_class = $1.strip + /the flash(.*)/ => lambda do |*args| + flash_type = args[0][/the flash(.*)/, 1] + flash_type_class = flash_type.strip flash_type_class = flash_type_class.empty? ? '' : ".#{flash_type_class}" ".flash#{flash_type_class} p" end,