Sha256: fdc54b231c2938b91e68f1dd96535e6035b065fa16c3933bdd8dd7dbbe8c55ac
Contents?: true
Size: 822 Bytes
Versions: 19
Compression:
Stored size: 822 Bytes
Contents
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
Version data entries
19 entries across 19 versions & 1 rubygems