<commit_before>require 'rails_helper'
require Rails.root.join(
  'spec', 'controllers', 'shared_examples', 'renders_index.rb'
)
require Rails.root.join(
  'spec', 'controllers', 'shared_examples', 'assigns_title.rb'
)

describe DashboardsController, type: :controller do
  describe 'GET index' do
    subject { get :index }
    it_behaves_like 'renders index'
    it_behaves_like 'assigns title', 'Global Dashboard'
  end
end<commit_msg>fix rspec test for dashboards<commit_after>require 'rails_helper'
require Rails.root.join(
  'spec', 'controllers', 'shared_examples', 'renders_index.rb'
)
require Rails.root.join(
  'spec', 'controllers', 'shared_examples', 'assigns_title.rb'
)

describe DashboardsController, type: :controller do
  describe 'GET dashboards/global' do
    subject { get :index, params: { type: 'global' } }
    # it_behaves_like 'renders index'
    it_behaves_like 'assigns title', 'Global Dashboard'
  end
end
{'fraction_non_alphanumeric': 0.12124463519313304, 'fraction_numerical': 0.0, 'mean_word_length': 5.479166666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5518227', 'n_tokens_mistral': 323, 'n_tokens_neox': 304, 'n_words': 78}