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. &lt;em&gt;This is a required field&lt;/em&gt;.\" 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

Version Path
sufia-2.0.1 spec/helpers/generic_file_helper_spec.rb
sufia-2.0.0 spec/helpers/generic_file_helper_spec.rb
sufia-1.3.0 spec/helpers/generic_file_helper_spec.rb
sufia-1.2.0 spec/helpers/generic_file_helper_spec.rb
sufia-1.1.0 spec/helpers/generic_file_helper_spec.rb
sufia-1.0.0 spec/helpers/generic_file_helper_spec.rb
sufia-0.1.0 spec/helpers/generic_file_helper_spec.rb
sufia-0.0.8 spec/helpers/generic_file_helper_spec.rb
sufia-0.0.7 spec/helpers/generic_file_helper_spec.rb
sufia-0.0.6 spec/helpers/generic_file_helper_spec.rb