Sha256: 021d98b2beef9cba51f5d312eea1757eb523407b9b3bffaed8a9de41c7d77e9c
Contents?: true
Size: 383 Bytes
Versions: 16
Compression:
Stored size: 383 Bytes
Contents
RSpec::Matchers.define :have_entry do |entry| match do |subject| if subject.class.name == 'Serverspec::Type::Cron' subject.has_entry?(@user, entry) elsif subject.respond_to?(:has_entry?) subject.has_entry?(entry) else backend.check_routing_table(example, entry) end end # For cron type chain :with_user do |user| @user = user end end
Version data entries
16 entries across 16 versions & 1 rubygems