mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
0b87e7543f
Rolling out frozen string literals further by freezing all string literals in core specs.
17 lines
473 B
Ruby
17 lines
473 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "rails_helper"
|
|
|
|
RSpec.describe WeekDay do
|
|
describe "#name" do
|
|
it "returns the translated week day name" do
|
|
expect(described_class.new(day: 1).name).to eq("Monday")
|
|
expect(described_class.new(day: 7).name).to eq("Sunday")
|
|
I18n.with_locale(:de) do
|
|
expect(described_class.new(day: 3).name).to eq("Mittwoch")
|
|
expect(described_class.new(day: 4).name).to eq("Donnerstag")
|
|
end
|
|
end
|
|
end
|
|
end
|