-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9922e06
commit 8ed1f27
Showing
4 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,27 @@ | ||
require "bundler/gem_tasks" | ||
require 'rake/testtask' | ||
Bundler::GemHelper.install_tasks | ||
|
||
task :console do | ||
puts "Loading development console..." | ||
system("irb -r active_model_otp") | ||
end | ||
|
||
task :help do | ||
puts "Available rake tasks: " | ||
puts "rake console - Run a IRB console with all enviroment loaded" | ||
puts "rake test - Run tests" | ||
end | ||
|
||
task :test do | ||
Dir.chdir('test') | ||
end | ||
|
||
Rake::TestTask.new(:test) do |t| | ||
t.libs << '../lib' | ||
t.libs << '../test' | ||
t.test_files = FileList['*_test.rb'] | ||
t.verbose = false | ||
end | ||
|
||
task :default => :test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
require "test_helper" | ||
class AppTest < MiniTest::Unit::TestCase | ||
def test_the_truth | ||
assert true | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
testdir = File.dirname(__FILE__) | ||
$LOAD_PATH.unshift testdir unless $LOAD_PATH.include?(testdir) | ||
|
||
libdir = File.dirname(File.dirname(__FILE__)) + '/lib' | ||
$LOAD_PATH.unshift libdir unless $LOAD_PATH.include?(libdir) | ||
|
||
require "rubygems" | ||
require "active_model_otp" | ||
require "minitest/unit" | ||
require "minitest/autorun" |