Skip to content

Latest commit

 

History

History
149 lines (102 loc) · 3.48 KB

CHANGELOG.md

File metadata and controls

149 lines (102 loc) · 3.48 KB

Changelog

unreleased(TODO)

  • with_tag should raise error when used outside have_tag
  • add ability to have_form('/url', 'PUT') or have_form('/url', :PUT)
  • inteligent check comments(make sure it is not searching inside comments)
  • shouldn't show all markup in error message if it is too big
  • order matching
  • improve documentation, add more usage examples (look at changelog and code!)

0.6.0

  • introduced rspec 3.0.0 compatibility (thanks to Tiago)

0.5.0

  • new "expect" syntax support

0.4.4

0.4.3

  • added license to gemspec

0.4.2

  • added :without to have_tag? like have_tag('div', :without => { :class => 'test' }) NOTE: currently only classes supported

0.4.1

  • ruby 2.0.0 support

0.4.0

  • added with_text matcher
  • some code refactoring, but a lot of refactoring left for future
  • rewritten README, added more usage examples
  • removed dealing with whitespaces (#11), too much magic for usage (#16)
  • some attempt to improve documentation

0.3.5

  • Fix for content matching regexps with single and double quotes (#14 thanks to watsonbox)

0.3.4

  • capybara support

0.2.4

  • added simple #description method for "it { should have_tag }" cases

0.2.3

  • fix for unicode text matching (issue #13)

0.2.2

  • leading and trailing whitespaces are ignored in tags where they should be ignored(#11, and again thanks to Simon Schoeters)
  • whitespaces ignoring as browser does in :text matching
  • have_tag backwards compability(thanks to Felix Tjandrawibawa, #12)

0.2.1

  • make possible use non-string as :text option(#10, thanks for idea to Simon Schoeters)

0.2.0

  • a little bit refactoring
  • added some html5 inputs
  • added message for should_not
  • raise exception when wrong parametres specified(:count and :minimum (or :maximum) simultaneously)
  • support all versions of nokogiri since 1.4.4

0.1.6 (nokogiri update)

  • updated nokogiri to 1.5.0 version, for nokokiri less than 1.5.0 use 0.0.6 release of this gem

0.0.6

  • allow for single quotes in content matchers (thanks to Kelly Felkins).

0.0.5 (trial-trip)

  • added some experimental matchers:
    • have_form
      • with_hidden_field
      • with_text_field
      • with_password_field
      • with_file_field?
      • with_text_area
      • with_check_box
      • with_radio_button
      • with_select
        • with_option
      • with_submit

0.0.4 (bugfix)

  • additional parameters(:count,:text,:with) rely on each other to match what exactly tester want to match(link to comment)

0.0.3

  • now following will work:

    rendered.should have_tag('div') do
      with_tag('p')
    end
    
  • tags can be specified via symbol

  • classes can be specified via array or string(class-names separated by spaces), so following will work:

    '<div class="one two">'.should have_tag('div', :with => { :class => ['two', 'one'] })
    '<div class="one two">'.should have_tag('div', :with => { :class => 'two one' })
    

0.0.2

  • documented source code
  • added changelog

0.0.1

  • all needed options and error messages