1
0
mirror of https://github.com/mastodon/mastodon synced 2025-01-11 12:23:22 +09:00
mastodon/spec/support/matchers/api_datetime_format.rb

9 lines
213 B
Ruby

# frozen_string_literal: true
RSpec::Matchers.define :match_api_datetime_format do
match(notify_expectation_failures: true) do |value|
expect { DateTime.rfc3339(value) }
.to_not raise_error
end
end