Commit Graph

27 Commits

Author SHA1 Message Date
Ben Atkins 0b2433667c Skip current_user test in Ruby18 due to pesky :id method 2014-03-20 16:54:57 -04:00
Ben Atkins 618768853a Add warning messages to test helpers for the 'prepare' rake task to avoid confusion [ci skip] 2014-03-20 16:17:11 -04:00
Ben Atkins a0b93aba5f close #346; cleanup code for 'user_for_paper_trail' default methods, add automated test coverage for various return values 2014-03-20 16:04:53 -04:00
Russell Osborne 0e80cd8779 Adding Full Support to Test Against Multiple DB engines.
Accomplished by swapping out database.yml files for the dummy rails instance with en engine specific one.
2014-03-16 11:07:17 -04:00
Ben Atkins 5302f5ecc8 Code condensation; 'without_versioning' method now yields model instance 2014-03-12 10:09:59 -04:00
Ben Atkins 44a632eea6 close #334; Add small-scope 'whodunnit' method to PaperTrail::Model::InstanceMethods 2014-03-11 17:55:44 -04:00
Ben Atkins 52823d2fb2 close #312; Fix RSpec 'with_versioning' class helper method 2014-03-11 16:22:22 -04:00
Ben Atkins ed2e3d55e4 Remove word 'column' from migration to add 'object_changes' column to follow Rails convention 2014-03-07 16:28:04 -05:00
Ben Atkins 8cd1426b01 Add generator spec for InstallGenerator; Use 'change' method for migrations 2014-03-07 16:12:27 -05:00
Ben Atkins 59743fa25b Typo fix in spec descritpion on articles_spec [ci skip] 2014-03-03 16:53:02 -05:00
Ben Atkins 2a7225f7ca close #329; Add :touch_with_version method to PaperTrail::Model::InstanceMethods 2014-02-21 18:20:40 -05:00
Ben Atkins 0359704751 close #307, close #326, close #328; Make Model.paper_trail_enabled_for_model? thread-safe 2014-02-20 11:44:39 -05:00
Ben Atkins 401569f63b Deprecate :paper_trail_on and :paper_trail_off methods in favor of bang versions 2014-02-12 18:27:10 -05:00
Ben Atkins 916ec98cad Fix VersionConcern spec helper for Ruby18 2013-12-03 17:55:43 -05:00
Ben Atkins 1e5b75d26d Add test within VersionConcern spec with persistence to simulate functionality in an app with multiple DB's 2013-12-03 15:58:08 -05:00
Ben Atkins 6a6e4d1473 Fixing state leak issue for :enabled_for_controller? method with RSpec and Cucumber helpers. close #293 2013-11-16 18:59:22 -05:00
Ben Atkins 0258fd5057 Explicitly specify table name for scope methods on VersonConcern. close #295 2013-11-15 13:54:30 -05:00
Ben Atkins 6fc33be9f4 Fixing a typo on the version_spec 2013-11-12 18:06:56 -05:00
Ben Atkins 36a402d115 Cleaning up the specs for the RSpec helper 2013-10-29 12:07:54 -04: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 fdf85343a8 Removing ruby19 hash syntax from RSpec helper and specs to maintain Ruby18 compatibility. Changing the spec_helper to use the dummy app in the 'test' directory to avoid having two dummy apps. Adding 'rspec-rails' to the 3.0.gemfile so it can run the spec tests on Travis. 2013-08-27 17:35:36 -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
Ben Atkins 5f53b1eb95 Adding dummy Rails app for specs 2013-08-27 14:42:33 -04:00