From 270afcc290822c4ba420a25cb245af71449566a9 Mon Sep 17 00:00:00 2001 From: Phil Pirozhkov Date: Thu, 14 Nov 2019 22:40:56 +0300 Subject: [PATCH] fixup! Adjust docstring --- spec/rspec/rails/matchers/active_job_spec.rb | 4 ++-- spec/rspec/rails/matchers/have_enqueued_mail_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/rspec/rails/matchers/active_job_spec.rb b/spec/rspec/rails/matchers/active_job_spec.rb index c487256c73..bad4a2f773 100644 --- a/spec/rspec/rails/matchers/active_job_spec.rb +++ b/spec/rspec/rails/matchers/active_job_spec.rb @@ -211,7 +211,7 @@ def self.name; "LoggingJob"; end }.to have_enqueued_job.at(date) end - it "accepts composable matchers in `at`" do + it "accepts composable matchers as an at date" do future = 1.minute.from_now slightly_earlier = 58.seconds.from_now expect { @@ -388,7 +388,7 @@ def self.name; "LoggingJob"; end }.to raise_error(/expected not to enqueue at least 1 jobs, but enqueued 2/) end - it "accepts composable matchers in `at`" do + it "accepts composable matchers as an at date" do future = 1.minute.from_now slightly_earlier = 58.seconds.from_now heavy_lifting_job.set(:wait_until => slightly_earlier).perform_later diff --git a/spec/rspec/rails/matchers/have_enqueued_mail_spec.rb b/spec/rspec/rails/matchers/have_enqueued_mail_spec.rb index e2837fed08..749d521d43 100644 --- a/spec/rspec/rails/matchers/have_enqueued_mail_spec.rb +++ b/spec/rspec/rails/matchers/have_enqueued_mail_spec.rb @@ -254,7 +254,7 @@ def email_with_args(arg1, arg2); end }.to raise_error(/expected to enqueue TestMailer.test_email exactly 1 time at #{send_time.strftime('%F %T')}/) end - it "accepts composable matchers in `at`" do + it "accepts composable matchers as an at date" do future = 1.minute.from_now slightly_earlier = 58.seconds.from_now