<commit_before>require File.expand_path('../../../test_helper', File.dirname(__FILE__))

class Admin::Gallery::GalleriesControllerTest < ActionController::TestCase

  def test_get_index
    get :index
    assert_response :success
    assert_template 'index'
  end

  # def test_get_index_with_category
  #   category = cms_sites(:default).categories.create!(:label => 'Test Category', :categorized_type => 'Cms::Snippet')
  #   category.categorizations.create!(:categorized => cms_snippets(:default))

  #   get :index, :site_id => cms_sites(:default), :category => category.label
  #   assert_response :success
  #   assert assigns(:snippets)
  #   assert_equal 1, assigns(:snippets).count
  #   assert assigns(:snippets).first.categories.member? category
  # end

  # def test_get_index_with_category_invalid
  #   get :index, :site_id => cms_sites(:default), :category => 'invalid'
  #   assert_response :success
  #   assert assigns(:snippets)
  #   assert_equal 0, assigns(:snippets).count
  # end

  def test_get_new
    get :new
    assert_response :success
    assert_template 'new'
    assert assigns(:gallery)
    assert_select "form[action='/admin/gallery/galleries']"
  end<commit_msg>remove extra test<commit_after>require File.expand_path('../../../test_helper', File.dirname(__FILE__))

class Admin::Gallery::GalleriesControllerTest < ActionController::TestCase

  def test_get_index
    get :index
    assert_response :success
    assert_template 'index'
  end

  def test_get_new
    get :new
    assert_response :success
    assert_template 'new'
    assert assigns(:gallery)
    assert_select "form[action='/admin/gallery/galleries']"
  end
{'fraction_non_alphanumeric': 0.11934900542495479, 'fraction_numerical': 0.0012055455093429777, 'mean_word_length': 4.4605263157894735, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '6644937', 'n_tokens_mistral': 534, 'n_tokens_neox': 507, 'n_words': 100}