Sha256: b2e9125295cd7cac9a605d46bdf2c162ea02953ed2bd0371e83bdd38f1f398dc
Contents?: true
Size: 923 Bytes
Versions: 10
Compression:
Stored size: 923 Bytes
Contents
require 'spec_helper' describe GenericFileHelper do it "draws add button" do helper.add_field(:test).should == "<button class=\"adder btn\" id=\"additional_test_submit\" name=\"additional_test\">+<span class=\"accessible-hidden\">add another test</span></button>" end it "draws subtract button" do helper.subtract_field(:test).should == "<button class=\"remover btn\" id=\"additional_test_submit\" name=\"additional_test\">-<span class=\"accessible-hidden\">add another test</span></button>" end it "draws help_icon" do helper.help_icon(:tag).should == "<a href=\"#\" data-content=\"Words or phrases you select to describe what the file is about. These are used to search for content. <em>This is a required field</em>.\" data-original-title=\"Keyword\" id=\"generic_file_tag_help\" rel=\"popover\"><i class=\"icon-question-sign icon-large\"></i></a>" end end
Version data entries
10 entries across 10 versions & 1 rubygems