<commit_before>require 'rails_helper'

RSpec.describe LibraryController, :type => :controller do



end<commit_msg>Add Library Controller specs<commit_after>require 'rails_helper'

RSpec.describe LibrariesController, :type => :controller do

  describe "Get #index" do
    it "responds successfully with a HTTP 200 status code" do
      get :index
      expect(response).to be_success
      expect(response).to have_http_status(200)
    end
    it "renders the index template" do
      get :index
      expect(response).to render_template("index")
    end
  end

  describe "Get #show" do
    context "Equipment Library" do
      it "responds successfully with a HTTP 200 status code" do
        get :show, id: 'equipment'
        expect(response).to be_success
        expect(response).to have_http_status(200)
      end
      it "renders the index template" do
        get :show, id: 'equipment'
        expect(response).to render_template("equipment")
      end
    end
    context "Color Library" do
    end
    context "Color Library" do
      it "responds successfully with a HTTP 200 status code" do
        get :show, id: 'colors'
        expect(response).to be_success
        expect(response).to have_http_status(200)
      end
      it "renders the index template" do
        get :show, id: 'colors'
        expect(response).to render_template("colors")
      end
    end
  end

end
{'fraction_non_alphanumeric': 0.08111988513998564, 'fraction_numerical': 0.012921751615218953, 'mean_word_length': 2.850828729281768, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '966865', 'n_tokens_mistral': 422, 'n_tokens_neox': 393, 'n_words': 135}