mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-24 01:32:40 -04:00
8 lines
178 B
Ruby
8 lines
178 B
Ruby
require 'rspec/expectations'
|
|
|
|
RSpec::Matchers.define :have_optional do |expected|
|
|
match do |actual|
|
|
actual.has_selector? "#{expected} + span", text: '(Optional)'
|
|
end
|
|
end
|