-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Description
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
endThe 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
Labels
No labels