<commit_before>require 'spec_helper'
require 'blacklight_cornell_requests/request_controller'

describe BlacklightCornellRequests::RequestController, :type => :controller do

	describe "GET /" do

		it "renders the :index view" do
			get :request, :id => 123
			response.should render_template :index
		end
	end


end
<commit_msg>Add first working controller rspec test.<commit_after>require 'spec_helper'
require 'blacklight_cornell_requests/request_controller'

describe BlacklightCornellRequests::RequestController, :type => :controller do

	describe "GET request" do

		it "renders the default view if no target is specified" do
			get :magic_request, { :id => 123, :use_route => :blacklight_cornell_requests }
			response.should render_template :default
		end
	end


end

{'fraction_non_alphanumeric': 0.07989690721649484, 'fraction_numerical': 0.007731958762886598, 'mean_word_length': 5.584745762711864, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '3822349', 'n_tokens_mistral': 257, 'n_tokens_neox': 224, 'n_words': 69}