Permalink
Browse files

add Userstamp::VERSION

  • Loading branch information...
1 parent bbb935d commit 72586b6ca42e9870e33d2644f3ee28033e4ba87f @grosser grosser committed Aug 4, 2010
Showing with 11 additions and 0 deletions.
  1. +4 −0 lib/userstamp.rb
  2. +7 −0 test/userstamp_test.rb
View
4 lib/userstamp.rb
@@ -2,6 +2,10 @@
require 'stampable'
require 'migration_helper'
+module Userstamp
+ VERSION = File.read( File.join(File.dirname(__FILE__),'..','VERSION') ).strip
+end
+
module Ddb
module Controller
# The Userstamp module, when included into a controller, adds a before filter
View
7 test/userstamp_test.rb
@@ -0,0 +1,7 @@
+require 'test/helper'
+
+class UserstampTests < ActiveSupport::TestCase
+ test "it has a VERSION" do
+ assert_match /^\d+\.\d+\.\d+$/, Userstamp::VERSION
+ end
+end

0 comments on commit 72586b6

Please sign in to comment.