Skip to content

Commit

Permalink
fix speccs
Browse files Browse the repository at this point in the history
  • Loading branch information
adipasquale committed Dec 26, 2024
1 parent 45952bf commit 2260abb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"title" => absence.title,
"start" => absence.starts_at.as_json,
"end" => absence.ends_at.as_json,
"backgroundColor" => "rgba(127, 140, 141, 0.7)",
"backgroundColor" => "rgba(52, 57, 58, 0.7)",
"url" => "/admin/organisations/#{organisation.id}/absences/#{absence.id}/edit",
},
]
Expand Down
4 changes: 2 additions & 2 deletions spec/services/off_days_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
describe ".to_full_calendar_array" do
it "returns the proper format for full calendar" do
array = described_class.to_full_calendar_array
expect(array[0].keys).to match_array(%i[title start end backgroundColor])
expect(array[0][:backgroundColor]).to eq "rgba(127, 140, 141, 0.7)"
expect(array[0].keys).to match_array(%i[title start end backgroundColor textColor])
expect(array[0][:backgroundColor]).to eq "rgba(52, 57, 58, 0.7)"
end
end
end

0 comments on commit 2260abb

Please sign in to comment.