Skip to content

Trailing string #21

@schneems

Description

@schneems
require "rails_helper"
RSpec.describe TelehealthAppointment, type: :model do
  describe "#participants_state" do
    context "timezones workaround" do
      it "should receive a time in UTC format and return the time with the"\
        "office's UTC offset substracted from it" do
        travel_to DateTime.new(2020, 10, 1, 10, 0, 0) do
          office = build(:office)
        end
      end
    end
  end
  describe "#past?" do
    context "more than 15 min have passed since appointment start time" do
      it "returns true" do # <== HERE
    end
  end
end

The it "returns true" do is the problem but due to the indentation it says:

   1  require "rails_helper"
   2  RSpec.describe TelehealthAppointment, type: :model do
   3    describe "#participants_state" do
   4      context "timezones workaround" do
   5        it "should receive a time in UTC format and return the time with the"\
❯  6          "office's UTC offset substracted from it" do
❯  7          travel_to DateTime.new(2020, 10, 1, 10, 0, 0) do
❯  9          end
  10        end
  11      end
  12    end
  13    describe "#past?" do
  14      context "more than 15 min have passed since appointment start time" do
  15        it "returns true" do # <== HERE
  16      end
  17    end
  18  end

Which is incorrect

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions