[DRE-commits] [SCM] ruby-shoulda.git annotated tag, v2.9.1, created. v2.9.1

Joe Ferris joe.r.ferris at gmail.com
Sun Jul 24 21:50:08 UTC 2011


The annotated tag, v2.9.1 has been created
        at  d32221e215b58d79dea724097896df23c517a07d (tag)
   tagging  440fe40291c96a19692921dd1dfb6b1c7baf1ce7 (commit)
 tagged by  Joe Ferris
        on  Wed Feb 4 19:50:11 2009 -0500

- Shortlog ------------------------------------------------------------
Tagging the 2.9.1 release

Antonio Terceiro (1):
      Minor documentation fix.

August Lilleaas (1):
      Calling should without a block piggybacks to should_eventually.

Barry Hess (1):
      Allow symbol parameter for should_render_with_layout [#99]

Bob Showalter (4):
      convert_to_should_syntax: fix clobbering of test names; leave existing should names untouched; add test case
      convert_to_shoulda_syntax: use Dir::tmpdir instead of hardcoded /tmp
      Change should_assign_to and should_not_assign_to to allow multiple names (#22)
      should_have_many: added tests for :source option

Bruce Williams (1):
      Support multiple setup and teardown blocks per context

Chris O'Sullivan (7):
      Fixed typo - added p to unsuported
      rebase
      Added dependent option to should_have_many
      Merge branch 'master' of git at github.com:thechrisoshow/shoulda
      Added should_ensure_length_is (including tests) [#32]
      Adds failing test for detecting bug in should_ensure_length_at_least
      Added new method should_render_page_with_metadata with tests [#61]

Cristi Balan (1):
      fix I18n.translate key for edge rails [#80]

Dan Croak (40):
      fixing init.rb conflict
      adding should_route from technicalpickles
      moved should_route macro into controller/macros
      removing should_be_restful
      replacing should_be_restful tests with normal tests
      removing should_be_restful, incrementing gem version to 2.0.1
      adding should_filter macro
      documentation patch - adding missing method to should_filter description
      renaming should_filter to should_filter_params
      doc patch for should_respond_with_content_type
      doc patch for should_route
      doc patch for before statements
      doc patch for should_change and should_not_change
      doc patch
      shoulda rails definition
      Merge branch 'master' of git at github.com:thoughtbot/shoulda
      bump the gemspec, 2.0.3
      removing should_be_restful example from README.rdoc
      creating DatabaseMatcher has_db_column, basic accept and reject case
      has_db_column can now take :type option
      refactoring should_have_db_columns to use new DatabaseMatcher. marking it as complete in active_record_progress list.
      refactoring database matcher to use detect
      altering build_model_class to take a DatabaseColumn object instead of a Hash of column :name => :type mappings. this is necessary to test attributes of database columns other than type (precision, default, limit, null, primary, scale, & sql_type)
      making database matcher take limit option, refactoring database matcher tests, making DatabaseColumn raise an ArgumentError when column name and type are not provided
      adding :default option to database matcher
      renaming create_model_table to create_table to match ActiveRecord migration API
      changing correct_ helpers on database matcher to explicitly check nil as I was getting burned by boolean test
      adding null option to database matcher
      refactored database matcher to be use of_type and with_options. determined :primary option is not a legit migration option. (to set a primary key you need to give :type a value of :priamry_key). improved database matcher description and expectation.
      renamed database matcher have_db_column_matcher
      added :scale option to have_db_column
      removing old database_matcher file from merge
      have_db_column matcher done
      RDoc for have_db_column matcher
      first passing tests for have_index matcher
      added unique option to have_index matcher
      tests & implementation logic to handle indexes on multiple columns
      converting should_have_index to use have_index matcher
      marking active_record_progress file as complete
      deprecate should_require_attributes with warning message. replace with should_validate_presence_of.

Dave Thomas (1):
      Fix incompatibility with case format in Ruby 1.9

DrMark (1):
      Fixed should_have_and_belong_to_many to allow symbols on the join_table option of habtm [#94]

Evan Sharp (1):
      Small doc typo fix and add an extra example

Greg Fairbrother (1):
      added missing commas to should_change macro examples

James Adam (1):
      Fixed misleading typos in subclassing documentation.

Joe Ferris (56):
      Added the before_should method, which is a nicer syntax for a :before lambda when no assertions are necessary
      Fixed a typo that resulted in a test that would always pass
      Moved all ActiveRecord-related helpers (MacroHelpers methods and helper methods in Assertions) into a Helpers module
      Added assertions to check whether or not a matcher accepts or rejects a given target
      Added a matcher for checking whether or not an instance accepts a value
      Changed the good/bad value assertions to use AttributeMatcher
      Refactored the AttributeMatcher a bit so that accepting_value and allow_blank_for are possible
      Moved each active_record matcher into its own file
      Converted should_belong_to to use a matcher
      Converted should_have_many to use a matcher
      Added a description to AssociationMatcher and changed the has_many/belong_to macros to use it
      Converted should_have_one to use a matcher
      Converted should_have_and_belong_to_many to use a matcher
      Changed matchers and added a lib/shoulda/matchers include so that matchers can be used outside shoulda
      Added a test helper to build models/database tables for testing matchers
      Refactored ActiveRecord matchers to use in-test models/tables, and removed the have_attribute matcher (not needed for shoulda macros)
      Converted should_require_unique_attributes to use a matcher
      Renamed AttributeMatcher to AllowValueMatcher
      Converted should_ensure_length_at_least to use a matcher
      Fixed allow_blank_for to use an empty array for has_many/habtm
      Added some tests for belongs_to with a :dependent option
      Reorganized matcher tests and files
      Converted should_ensure_length_in_range to use a matcher
      Converted should_ensure_length_is to use a matcher
      Added a text file to mark refactoring progress
      Converted should_ensure_value_in_range to use a matcher
      Refactored should(_not)_allow_values_for to use matcher descriptions
      Refactored existing validation matchers
      Converted should_only_allow_numeric_values to use a matcher
      Converted should_require_acceptance_of to use a matcher
      Fixed reference to assert_matches
      Changed the have_db_columns matcher test to use a model name that doesn't conflict with the rest of the Shoulda suite
      Fixed failing matcher tests
      Converted should_have_readonly_attributes to use a matcher
      Converted should_protect_attributes to use a matcher
      Converted should_have_named_scope to use a matcher
      Refactored build_model_class so that the migrate/constant steps can be independent
      Restored low_message/high_message options for should_ensure_value_in_range
      Added documentation for several matchers
      Un-nodoc'd the Matchers module
      Added missing documentation for ActiveRecord matchers
      Added documentation in Shoulda::ActiveRecord::Matchers and mentioned Matchers in the README
      Removed a reference to the Thoughtbot namespace in the Matchers module
      Renamed matchers in accordance with ticket #106
      Changed the protect_attribute matcher to the inverted allow_mass_assignment_of in anticipation of #106
      Deprecated should_require_unique_attributes in favor of should_validate_uniqueness_of
      Deprecated should_only_allow_numeric_values_for in favor of should_validate_numericality_of
      Deprecated should_require_acceptance_of in favor of should_validate_acceptance_of
      Deprecated should_protect_attributes in favor of should_not_allow_mass_assignment_of
      Added should_allow_mass_assignment_of, the reverse of should_not_allow_mass_assignment_of
      Added Rspec-detection and integration
      The validate_uniqueness_of matcher no longer fails when the subject is an existing record
      Bumped to version 2.9.0
      Fixed the Rails initializer to integrate with RSpec when needed
      Changed shoulda/rspec to include matchers directly to resolve a load order issue
      Bumped to version 2.9.1

Jonathan Lim (1):
      Fixing should piggybacking [#39]

Josh Nichols (6):
      Starting to port should_route to own branch.
      Added macros.
      Actually works now. Added tests.
      Added documentation. Added tests for posts nested under users.
      Tweaked init.rb to only load activerecord/actionmailer/controller stuff if the appropriate classes are defined.
      Moved tasks/* to shoulda/tasks/*

Keith Morrison (1):
      should_have_one macro now supports the :dependent option

Lawrence Pit (3):
      Added check for uniqueness to should_have_indices [#129]
      Added case_sensitive option to should_require_unique_attributes call [#130]
      When in a rails environment, only load shoulda when RAILS_ENV equals 'test' [#134]

Mathieu Martin (6):
      Removed all ThoughtBot (and Thoughtbot) namespaces
      Fix weird issue caused by extending the Shoulda module directly
      Implement autoload_macros [#119]
      Replace the Rails autoloading by a call to autoload_macro [#119]
      Add tests to make sure custom, plugin and gem macros are loaded properly [#119]
      Moved autoload_macros from the Macros module to the Shoulda module

Matt Jankowski (18):
      use > 2.1.0 so that gem installs of newer versions of rails can still run the shoulda tests
      add a should_respond_with_content_type macro for controller tests to check content type of response
      add a should_return_from_session macro which asserts that the value returned from the session for some key is what was expected
      we need to eval what were sent
      rails actually takes care of making sure response.headers["type"] is what we want
      if we use a symbol, lets check what rails believes
      rails gives us a #content_type to get just the content type and not the charset, use that instead so we can assert_equal instead of assert_match
      add ability to handle regexp to should_respond_with_content_type
      Merge branch 'master' of git://github.com/thoughtbot/shoulda
      Use >= 2.1.0 so that gem installs of newer versions of rails can still run the shoulda tests
      merge in changes
      Merge branch 'master' of git://github.com/thoughtbot/shoulda
      add should_render_with_layout and should_render_without_layout
      add a :class option to should_assign_to which checks that the instance vars are of the correct class
      add an :equals option to should_assign_to which checks that the assigned instance variable is equal to the eval of the string passed to the option
      require our rails stuff if being used in rails
      use the rails standard way of initializing a gem, instead of that RAILS_ROOT check
      Add new init files to gemspec, and revert previous removal of RAILS_ROOT check, because the rails 2.1+ implementation of requiring rails/init.rb from gems is apparently buggy

Matt Lins (1):
      added dependent option to should_belong_to [#108]

Mike Boone (6):
      should_protect_attributes works with attr_accessible
      Corrected to hide scope when scope array is blank.
      Merge branch 'thoughtbot/master'
      Added should_have_readonly_attributes
      Updated should_protect_attributes to fix issue when attr_protected is used and attribute is missing.
      Replaced error regexes with ActiveRecord default error messages

Nathan Sutton (1):
      Scoping of uniqueness validations on multiple attributes

Ryan McGeary (69):
      Fixed double printing of deferred statements when should_eventuallys are in nested contexts
      Upped rails_root to depend on Rails 2.1.0
      Removed unnecessary database access for several active record macro helpers
      Made Address#zip a string to correctly support numericality checks
      Rid the symlink behavior under test/rails_root/vendor/plugins
      Added support for passing a :before Proc option to a should statement
      Added new should_change and should_not_change macros; akin to Active Support's assert_difference.
      Cleaned up should_change macros to generate the should statement using inspect calls instead of ticks.
      Modified should_change macro to use the case equality operator (===) for checking :from and :to options
      Added 'rake coverage' for an rcov report
      Cleaned rails_root testing migrations so there is only one migration per model
      Added a test for the model_class private helper
      Added assert_good_value and assert_bad_value in preperation for DRYing the AR macros
      DRY'd up Active Record macro helpers
      Enhanced assert_good/bad_value assertions in preparation for stateful AR validations
      Added support for stateful Active Record validations
      Cleaned an unnecessary should statement
      Fix for pluralization problem in should_belong_to [#19] [Earle Clubb, Anthony Caliendo]
      Fixed shoulda:list rake task for Rails 2.1 by adding the 'test' directory to the load path
      Fixed should_have_many regression [#60]
      Testing fix for incorrectly specified :source option on a has_many :through
      Fix for shoulda_macros directory support under vendor/gems under vendor/plugins [#62]
      Moved shoulda/gem/* to shoulda/context.rb and shoulda/proc_extensions.rb
      Added shoulda/assertions and moved generic assertions into it
      Reorganized ActiveRecord macros and assertions
      Organized some generic macro helpers
      Reorganized Controller macros and helpers
      Organized ActionMailer assertions
      Moved include of Private helpers from AR::Macros to general Macros
      Removed General module and added Helpers module
      Moved Rails dependencies from shoulda.rb to init.rb
      Broke configuration out into its own file
      Doc updates
      `require` cleanup
      Deprecated load_all_fixtures [#65]
      Removed shoulda.conf and color support
      Moved logic of init.rb into shoulda/rails
      Fixed typo in tasks.rb (File.dirname instead of File.basename)
      Added gem related rake tasks [#55]
      Published GitHub gemspec; Assigned gem version to 2.0.0;
      Updated gemspec to fix gem build
      Added a `should_fail` macro to help test failure scenarios in the core shoulda tests
      Added `should_fail` scenario for testing `should_protect_attributes`
      Fix for new shoulda/tasks organization when shoulda is used solely as a plugin [#75]
      Updated Rakefile to avoid future regression of shoulda/tasks problems [#75]
      Fixed AR deprecation warnings when using edge Rails [#80]
      Fix for one more AR deprecation warning when using edge Rails [#80]
      Better named the should clause for should_have_one when the :dependent option is in use [#81]
      Deprecated should_be_restful [#78]
      Version bump to v2.0.2 and `rake gemspec` update
      Fixed should_have_indices to always use the correct table name [#89] [Jacob Harris]
      Fix for recent I18n changes in edge Rails [#87] [DrMark, Carlos Antonio da Silva]
      Version bump to 2.0.4 to maintain consistency with VERSION constant
      Version bump to 2.0.5 for better Ruby 1.9 compatibility
      Cleanup of the test suite dog model to avoid the duplicate habtm
      Removed unnecessary activesupport gem dependency
      Upped version to 2.0.6
      Fixed automatic instance variable lookup to work with namespaced models [#88] (Nathaniel Bibler, Kane)
      Merge branch 'added_title_checking' of git://github.com/thechrisoshow/shoulda into thechrisoshow/added_title_checking
      Fix for when should_assign_to tries to check an explicitly false instance variable [#117]
      Moved VERSION constant into a more discoverable file
      Fixed backwards compatibility on new :unique option for should_have_indices [#129]
      Flip-flopped mispositioned `expected` and `actual` arguments on an `assert_equal` call [#129]
      Minor tweaks to should_require_unique_attributes with case_sensitive option [#130]
      should_require_attributes now handles arrays (has_many and has_and_belongs_many) [#109]
      Added a section on Rails Installation to the README
      Whoops, :lib => "shoulda"
      Wording tweaks to the recent Readme updates
      Fixed `rake shoulda:list` to handle undefined constants [Evan Light] [#135]

Tammer Saleh (45):
      Just testing out github.
      cleaned up the failure message from asser_save
      cleaned up the test names
      Merge branch 'master' of git at github.com:thoughtbot/shoulda
      added missing dirs and removed dangling symlink
      refactored the mail assertions
      small test name changes
      added should_have_indices to test for database indices
      fixed should_have_and_belong_to to test for the join table
      small change to improve rdocs
      forgot to remove an old email assertion
      documentation fixes
      renamed README file so that github displays the rdoc correctly
      Merge branch 'master' of git at github.com:thoughtbot/shoulda
      Merge git://github.com/thechrisoshow/shoulda into pull-requests
      Merge git://github.com/boone/shoulda into pull-requests
      Merge git://github.com/thechrisoshow/shoulda into pull-requests
      Merge git://github.com/nate/shoulda into pull-requests
      indenting fix
      Added contribution guidelines
      fixed order of doc files
      Removed ThoughtBot module.
      Rearranged a bunch of code
      documentation fixes
      Cleaned up the config file logic and now only loading rails parts when the constants are already there.
      Revert bunch of bad commits:
      reversed the order of the teardown blocks
      fixed define method call for ruby 1.9
      fixed naming of should_require_unique_attributes when scope is not set #38
      removed comment
      Merge branch '32-please-add-should_ensure_length_is' of git://github.com/thechrisoshow/shoulda into pull-requests
      Added should_have_readonly_attributes
      added merge_block
      Added should_have_named_scope ActiveRecord test macro
      modified the calling structure of should_have_named_scope for flexibility
      fixed should_have_many :through bug #60, and added .svn to gitignore.
      Added shoulda_macros directory support as per http://thoughtbot.lighthouseapp.com/projects/5807/tickets/62
      Merge branch 'master' of git at github.com:thoughtbot/shoulda
      Updated the documentation.
      small fixes to layout macros
      documentation changes
      Style changes for last commit.
      Fixed indenting
      Revert the removal of should_be_restful.
      fixed pretty_error_messages to not blow up when there are errors on :base

tsaleh (119):
      Created trunk and tags
      Moved everthing to trunk
      Added rake test task
      Added ignore for doc
      Documentation
      Removed tb_spec_helpers, as we aren't supporting it.
      - fixed bugs with nested contexts
      - added messages to some helpers
      typo in assert_same_elements
      Added test colorization
      - stuff
      testing scope option
      Added scope_to to AR helper
      documentation
      Cleanups
      - documentation
      bugfix
      - refactored into modules
      Renamed tb_test_helpers to shoulda
      Renamed TestHelpers to Shoulda
      doc changes and renamed a file
      missed some renames
      typo
      typo
      Added activerecord tests and fixed error message on assert_contains
      Added activerecord tests and fixed error message on assert_contains
      Fix for integration tests
      configured for cc.rb
      now raises exceptions when given bad options
      fixed test method names
      controller tests
      backported bugfix
      Added support dir for tests
      Moved files into support
      added routes
      blah
      testing ci
      testing ci
      - completely refactored the test system to use a fake rails_root
      merged in some fixes
      Added parents= alias
      More major refactoring of controller tests
      Major refactoring all around.
      Moved old tests back into place
      more refactorings
      XML denied tests
      some refactoring
      stuff
      Cleaned up config file code
      debugging
      Fixed private helper
      Tons of documentation
      Added task to sync docs to dev.thoughtbot.com
      documentation and fixes to :through test
      Added check for foreign key in belongs_to test
      test fixes
      Added create and update params to test names
      Added :all as valid option for formats and actions
      typo
      Added assert_save and assert_valid to shoulda
      Added some methods
      moved tasks dir
      fixed rake file
      fixing db
      fixed test schema
      autogenerating test plugin link
      documentation fixes
      added support for nil in should_redirect_to
      changed redirect logic.  Now accepts a symbol, which will test for that status code instead.
      refactored flash tests
      - imported bugfix from 3.0.4 which get's the wrong parent id in should_be_restful
      Applied patches from Tim Case (tim at powerupdev.com):
      fixed docs and added to test for should_have_instance_methods
      - moved rake tasks to shoulda namespace
      limited the formats to *.rb files
      added methods should_have_db_column and should_have_db_columns for activerecord tests
      converted to the MIT license
      adding tests for foreign keys
      - fixed some overeager helpers
      - Added shoulda gem to plugin.  The gem directory is managed via piston, which will merge in the gem code on piston update.
      comments
      small test name fix
      fixed content-type check for rails 2.0
      fixed url helpers for rails 2.0
      removed asset_difference, as it is now in rails 2.0
      fixed should_require_unique_attributes and improved error messages
      - fixed the rails root to rails 2.0.2
      fixed foreign key determination (http://tammer.lighthouseapp.com/projects/5807/tickets/8)
      applied patch from http://tammer.lighthouseapp.com/projects/5807/tickets/10
      fixed xml content type detection
      - added should_require_acceptance_of [http://tammer.lighthouseapp.com/projects/5807-shoulda/tickets/6]
      updated shoulda gem to refactored version
      fixed http://tammer.lighthouseapp.com/projects/5807/tickets/18
      refactored should_protect_attributes to just test that the AR model sees the attribute as protected.
      documentation fix
      fixes to should_ensure_length_in_range http://tammer.lighthouseapp.com/projects/5807/tickets/11
      updated gem
      minor refactorings and code rearranging
      removed message option from should_allow_values_for (gary.tsang - lighthouse #24)
      using to_param instead of id in make_parent_params (Bryan Liles - lighthouse #23)
      tweak to rake task
      small refactorings
      updated documentation
      typos
      small changes
      - removed a bunch of unneeded files under the test/rails_root
      applied should_ensure_length_at_least patch via Chris O'Sullivan
      fixed bug in should_protect_attributes
      Just testing out github.
      cleaned up the failure message from asser_save
      cleaned up the test names
      added missing dirs and removed dangling symlink
      refactored the mail assertions
      small test name changes
      added should_have_indices to test for database indices
      fixed should_have_and_belong_to to test for the join table
      small change to improve rdocs
      forgot to remove an old email assertion
      documentation fixes

-----------------------------------------------------------------------

-- 
ruby-shoulda.git



More information about the Pkg-ruby-extras-commits mailing list