summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-10-11 12:44:07 +0200
committerAzul <azul@leap.se>2012-10-11 12:44:07 +0200
commita86de8ca44d30d48db1cf05520f54a8cf48b645d (patch)
treef8ca191b7df29468f6750fd73ede973120c229a0 /lib
parentbd17dee3ae5650e8ff1c7700fa0e83adf386b91b (diff)
parent689c2831680ece3ec8e1cceb45933f9b501b5734 (diff)
Merge branch 'fixing_tests' into release-0.1.0
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_web/version.rb2
-rw-r--r--lib/tasks/gems.rake2
-rw-r--r--lib/tasks/test.rake18
3 files changed, 20 insertions, 2 deletions
diff --git a/lib/leap_web/version.rb b/lib/leap_web/version.rb
index bac8655..6a74082 100644
--- a/lib/leap_web/version.rb
+++ b/lib/leap_web/version.rb
@@ -1,3 +1,3 @@
module LeapWeb
- VERSION = "0.1.0"
+ VERSION = "0.1.0" unless defined?(LeapWeb::VERSION)
end
diff --git a/lib/tasks/gems.rake b/lib/tasks/gems.rake
index 27eb04c..8120235 100644
--- a/lib/tasks/gems.rake
+++ b/lib/tasks/gems.rake
@@ -12,7 +12,7 @@ namespace :gem do
putsys "bundle exec rake gem"
end
- desc "run rake gem for all gems"
+ desc "clear pkg directory for all gems"
task :clear do
each_gem do |gem_name|
putsys "rm -rf #{gem_name}/pkg"
diff --git a/lib/tasks/test.rake b/lib/tasks/test.rake
new file mode 100644
index 0000000..3c87b45
--- /dev/null
+++ b/lib/tasks/test.rake
@@ -0,0 +1,18 @@
+namespace :test do
+
+ Rails::SubTestTask.new(:units => "test:prepare") do |t|
+ t.libs << "test"
+ t.pattern = '*/test/unit/**/*_test.rb'
+ end
+
+ Rails::SubTestTask.new(:functionals => "test:prepare") do |t|
+ t.libs << "test"
+ t.pattern = '*/test/functional/**/*_test.rb'
+ end
+
+ Rails::SubTestTask.new(:integration => "test:prepare") do |t|
+ t.libs << "test"
+ t.pattern = '*/test/integration/**/*_test.rb'
+ end
+
+end