Sha256: 897a821239504a8ab0ae56ee6c6a7b871ba3b12048fb7329431ae9cf76adc798
Contents?: true
Size: 578 Bytes
Versions: 6
Compression:
Stored size: 578 Bytes
Contents
require 'spec_helper' describe Sufia::PresenterRenderer, type: :view do let(:generic_file) { GenericFile.new } let(:presenter) { Sufia::GenericFilePresenter.new(generic_file) } let(:renderer) { described_class.new(presenter, view) } describe "#label" do context "of a field with a translation" do subject { renderer.label(:date_created) } it { is_expected.to eq 'Date Created' } end context "of a field without a translation" do subject { renderer.label(:date_uploaded) } it { is_expected.to eq 'Date uploaded' } end end end
Version data entries
6 entries across 6 versions & 1 rubygems