I was doing
expect(@link.url_address == 'abc').to be_true
but url_address may have different text after abc , so I'm trying
expect(@link.url_address =~ 'abc').to be_true
but i get
Failure/Error: expect(@link.url_address =~ /abc/).to be_true expected to respond to `true?`
I also tried
expect(@link.url_address).to =~ /abc/
but i get
Failure/Error: expect(@link.url_address).to =~ /abc/ ArgumentError: The expect syntax does not support operator matchers, so you must pass a matcher to `#to`.
source share