Fixed string interpolation

This commit is contained in:
Wojciech Wnętrzak 2020-06-22 10:52:41 +02:00
parent 3c675c2c16
commit 33bee348ad
No known key found for this signature in database
GPG Key ID: 0EABD3BE530ECAC6
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ module Capybara
class TextQuery < BaseQuery
def initialize(type = nil, expected_text, session_options:, **options) # rubocop:disable Style/OptionalArguments
@type = type.nil? ? default_type : type
raise ArgumentError, '${@type} is not a valid type for a text query' unless valid_types.include?(@type)
raise ArgumentError, "#{@type} is not a valid type for a text query" unless valid_types.include?(@type)
@options = options
super(@options)