Permalink
Browse files

Move VERSION its own file

So it can be shared between the gem and autotest config.
  • Loading branch information...
blowmage committed Nov 2, 2012
1 parent ad14a5b commit 5ff65eeecae2e58bedf450557f8581b4caf70fb7
Showing with 9 additions and 2 deletions.
  1. +1 −0 Manifest.txt
  2. +2 −1 lib/autotest/minitest_rails.rb
  3. +1 −1 lib/minitest-rails.rb
  4. +5 −0 lib/minitest/rails/version.rb
View
@@ -51,6 +51,7 @@ lib/minitest/rails/declarative.rb
lib/minitest/rails/mochaing.rb
lib/minitest/rails/tasks/minitest.rake
lib/minitest/rails/tasks/sub_test_task.rb
+lib/minitest/rails/version.rb
minitest-rails.gemspec
tasks/gemfiles.rake
tasks/test.rake
@@ -1,7 +1,8 @@
require 'autotest'
+require "minitest/rails/version"
class Autotest::MinitestRails < Autotest
- VERSION = "0.2"
+ VERSION = MiniTest::Rails::VERSION
def initialize # :nodoc:
super
View
@@ -1,9 +1,9 @@
+require "minitest/rails/version"
require "rails"
require "minitest/unit"
module MiniTest
module Rails
- VERSION = "0.2"
class Railtie < ::Rails::Railtie
if ::Rails.version.to_f >= 3.1
config.app_generators.integration_tool :mini_test
@@ -0,0 +1,5 @@
+module MiniTest
+ module Rails
+ VERSION = "0.2"
+ end
+end

0 comments on commit 5ff65ee

Please sign in to comment.