spec/views/hyrax/admin/stats/show.html.erb_spec.rb in hyrax-2.1.0.beta1 vs spec/views/hyrax/admin/stats/show.html.erb_spec.rb in hyrax-2.1.0.beta2

- old
+ new

@@ -8,9 +8,18 @@ allow(presenter).to receive(:top_formats).and_return([]) allow(presenter).to receive(:works_count).and_return(total: 0) allow(presenter).to receive(:depositors).and_return([]) end + context 'locales' do + before do + render + end + it 'includes a default locale hidden input' do + expect(rendered).to have_selector 'input', exact: 'en' + end + end + context "default depositors" do let(:top_5_active_users) do (1..5).map { |i| double(label: i.to_s, value: i) } end