<commit_before>require 'spec_helper'

describe Alchemy::Admin::BaseHelper do

  context "maximum amount of images option" do

		before(:each) do
		  @options = {}
		end

    context "with max_images option" do

			it "should return nil for empty string" do
	      @options[:max_images] = ""
				max_image_count.should be(nil)
	    end

	    it "should return an integer for string number" do
	      @options[:max_images] = "1"
				max_image_count.should be(1)
	    end

    end

		context "with maximum_amount_of_images option" do

			it "should return nil for empty string" do
	      @options[:maximum_amount_of_images] = ""
				max_image_count.should be(nil)
	    end

	    it "should return an integer for string number" do
	      @options[:maximum_amount_of_images] = "1"
				max_image_count.should be(1)
	    end

		end

  end

	context "modules" do
		it "should render main navi entries for all core modules" do
			pending 'Do not know how to test helpers defined as helper_method in controller'
			helper.admin_main_navigation.should have_selector('a.main_navi_entry')
		end
	end

end
<commit_msg>Removed pending spec<commit_after>require 'spec_helper'

describe Alchemy::Admin::BaseHelper do

  context "maximum amount of images option" do

		before(:each) do
		  @options = {}
		end

    context "with max_images option" do

			it "should return nil for empty string" do
	      @options[:max_images] = ""
				max_image_count.should be(nil)
	    end

	    it "should return an integer for string number" do
	      @options[:max_images] = "1"
				max_image_count.should be(1)
	    end

    end

		context "with maximum_amount_of_images option" do

			it "should return nil for empty string" do
	      @options[:maximum_amount_of_images] = ""
				max_image_count.should be(nil)
	    end

	    it "should return an integer for string number" do
	      @options[:maximum_amount_of_images] = "1"
				max_image_count.should be(1)
	    end

		end

  end

end

{'fraction_non_alphanumeric': 0.07806122448979592, 'fraction_numerical': 0.004081632653061225, 'mean_word_length': 3.1546610169491527, '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': '352757', 'n_tokens_mistral': 702, 'n_tokens_neox': 598, 'n_words': 197}