Permalink
Browse files

Add test for VERSION constant; update CHANGELOG

  • Loading branch information...
1 parent bb09f9e commit 498e03923c6e410b2a1311dec81e9cce39ad6036 @batter batter committed Dec 2, 2013
Showing with 5 additions and 0 deletions.
  1. +1 −0 CHANGELOG.md
  2. +4 −0 test/paper_trail_test.rb
View
@@ -1,5 +1,6 @@
## 3.0.0 (Unreleased)
+ - [#305](https://github.com/airblade/paper_trail/pull/305) - `PaperTrail::VERSION` should be loaded at runtime.
- [#295](https://github.com/airblade/paper_trail/issues/295) - Explicitly specify table name for version class when
querying attributes. Prevents `AmbiguousColumn` errors on certain `JOIN` statements.
- [#289](https://github.com/airblade/paper_trail/pull/289) - Use `ActiveSupport::Concern` for implementation of base functionality on
View
@@ -5,6 +5,10 @@ class PaperTrailTest < ActiveSupport::TestCase
assert_kind_of Module, PaperTrail::Version
end
+ test 'Version Number' do
+ assert PaperTrail.const_defined?(:VERSION)
+ end
+
test 'create with plain model class' do
widget = Widget.create
assert_equal 1, widget.versions.length

0 comments on commit 498e039

Please sign in to comment.