Fixed string interpolation
This commit is contained in:
parent
3c675c2c16
commit
33bee348ad
|
@ -6,7 +6,7 @@ module Capybara
|
||||||
class TextQuery < BaseQuery
|
class TextQuery < BaseQuery
|
||||||
def initialize(type = nil, expected_text, session_options:, **options) # rubocop:disable Style/OptionalArguments
|
def initialize(type = nil, expected_text, session_options:, **options) # rubocop:disable Style/OptionalArguments
|
||||||
@type = type.nil? ? default_type : type
|
@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
|
@options = options
|
||||||
super(@options)
|
super(@options)
|
||||||
|
|
Loading…
Reference in New Issue