diff --git a/spec/models/learning_hour_spec.rb b/spec/models/learning_hour_spec.rb index 04ff86815b..12f1dd819a 100644 --- a/spec/models/learning_hour_spec.rb +++ b/spec/models/learning_hour_spec.rb @@ -36,7 +36,7 @@ end it "has date that is not in the future" do - learning_hour = build_stubbed(:learning_hour, occurred_at: 1.day.from_now.strftime("%d %b %Y")) + learning_hour = build_stubbed(:learning_hour, occurred_at: 1.day.from_now) expect(learning_hour).not_to be_valid end