mirror of
https://github.com/Growstuff/growstuff.git
synced 2025-12-23 17:47:49 -05:00
10 lines
209 B
Ruby
10 lines
209 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rspec/expectations'
|
|
|
|
RSpec::Matchers.define :have_optional do |expected|
|
|
match do |actual|
|
|
actual.has_selector? "#{expected} + span", text: '(Optional)'
|
|
end
|
|
end
|