Commit Graph

19 Commits

Author SHA1 Message Date
Ben Atkins 936239e552 There is no JSON column type support in ActiveRecord3 2015-05-07 15:04:15 -04:00
Ben Atkins 46f1709ab3 Add ActiveRecord version limitation for the tests against jsonb column types since only ActiveRecord 4.2+ has support for it 2015-05-07 14:45:03 -04:00
Michael Raimondi 5dc5360391 Implement where_object_changes query for JSON columns 2015-04-14 23:28:03 -04:00
Michael Raimondi 6d15205488 Add tests and refactor where_object_changes with JSONB 2015-04-14 23:28:03 -04:00
Michael Raimondi a7a7d0020c Vary column type for tests if DB is postgres 2015-04-14 23:28:03 -04:00
Ben Atkins 1ad78383aa Adjust specs regarding #where_object_changes to prevent possible coincidental errors; also acknowledge inconsistent nature of fixnum value args 2015-01-14 17:38:35 -05:00
Ben Atkins cd7c09e258 Adjust specs for PaperTrail::Version#where_object_changes to ensure consistent sort order of return values 2015-01-14 16:07:28 -05:00
Ben Atkins 4a92ed7ea5 close #420; Add VersionConcern#where_object_changes 2015-01-07 16:57:45 -05:00
Ben Atkins abdf53ab39 Invoke HashWithIndifferentAccess#to_hash to cast to a hash since #to_h is not defined on Ruby19 and lower 2014-10-21 15:30:29 -04:00
Ben Atkins 08d89bdd5a close #391; Model::InstanceMethods#changes_for_paper_trail should return a plain Hash instead of an ActiveSupport::HashWithIndifferentAccess
This will cut down on the length of the Strings being stored in the 'object_changes'
column on the 'versions' table in the database.
2014-10-21 15:05:16 -04:00
Ben Atkins 716c3e0fb5 Use RSpec 3 for testing; Update syntax in spec suite for RSpec 3 2014-10-09 15:04:17 -04:00
Ben Atkins 417608f961 Convert tests for VersionConcern#where_object to RSpec specs and update tests to actually test for functionality 2014-06-26 18:06:24 -04:00
Ben Atkins 6fc33be9f4 Fixing a typo on the version_spec 2013-11-12 18:06:56 -05:00
Ben Atkins 975e1bb859 Reorganizing specs for new VersionConcern module merged from #289 2013-10-29 11:57:41 -04:00
Chulki Lee 00bf38ff1e Add rspec for concern 2013-10-22 10:12:08 -07:00
Ben Atkins 617c203a89 Adding :version_author alias for the :whodunnit attribute on Version class; adding some basic spec coverage for the Version class. close #284 2013-10-11 10:42:12 -04:00
Ben Atkins 642c296aa3 Simplifying the RSpec helper code, adding better spec coverage for it 2013-08-27 16:34:16 -04:00
Ben Atkins e3a039b3db Improving the structure and syntax of the RSpec helper, modifying it to work with rspec in addition to rspec-rails 2013-08-27 15:12:33 -04:00
Paul Belt 4eaaac5dd8 specs for version; with_versioning helper for rspec
Conflicts:
	paper_trail.gemspec
2013-08-27 14:44:05 -04:00