Skip to content

Commit

Permalink
Merge pull request #20006 from department-of-veterans-affairs/akonhil…
Browse files Browse the repository at this point in the history
…as/APPEALS-35195

akonhilas/APPEALS-35195
  • Loading branch information
mchbidwell authored Nov 27, 2023
2 parents 872a646 + 7311a8e commit 7996b93
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/models/hearing_day.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def conference_links
end

def subject_for_conference
"Guest Link for #{scheduled_for.strftime('%b %e, %Y')}"
"#{id}_#{scheduled_for.strftime('%m %e, %Y')}"
end

def nbf
Expand Down
11 changes: 7 additions & 4 deletions spec/models/hearing_day_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -595,19 +595,22 @@ def format_begins_at_from_db(time_string, scheduled_for)
context "#subject_for_conference" do
include_context "Enable both conference services"

let(:expected_date) { "Sep 21, 2023" }
let(:expected_date_parsed) { Date.parse(expected_date) }
let(:assigned_date) { "Sep 21, 2023" }
let(:id) { 2_000_006_656 }
let(:expected_date_parsed) { Date.parse(assigned_date) }
let(:hearing_day) do
build(
:hearing_day,
scheduled_for: expected_date_parsed
scheduled_for: expected_date_parsed,
id: id
)
end

subject { hearing_day.subject_for_conference }

it "returns the expected meeting conference details" do
is_expected.to eq("Guest Link for #{expected_date}")
expected_date = "09 21, 2023"
is_expected.to eq("#{hearing_day.id}_#{expected_date}")
end

context "nbf and exp" do
Expand Down

0 comments on commit 7996b93

Please sign in to comment.