spec/views/spotlight/dashboards/_analytics.html.erb_spec.rb in blacklight-spotlight-1.0.0 vs spec/views/spotlight/dashboards/_analytics.html.erb_spec.rb in blacklight-spotlight-1.1.0

- old
+ new

@@ -1,7 +1,7 @@ describe 'spotlight/dashboards/_analytics.html.erb', type: :view do - let(:current_exhibit) { FactoryGirl.create(:exhibit) } + let(:current_exhibit) { FactoryBot.create(:exhibit) } let(:ga_data) { OpenStruct.new(pageviews: 1, users: 2, sessions: 3) } let(:page_data) { [OpenStruct.new(pageTitle: 'title', pagePath: '/path', pageviews: '123')] } before do allow(view).to receive_messages(current_exhibit: current_exhibit, exhibit_root_path: '/some/path') allow(current_exhibit).to receive(:analytics).and_return(ga_data)