Permalink
Browse files

Fixed failing I18n test

  • Loading branch information...
1 parent 64bcb48 commit 1377882abcc68ad52f39dbfaab19f8958f28cec5 Ben Jackson committed Sep 25, 2011
Showing with 24 additions and 5 deletions.
  1. +3 −0 .gitignore
  2. +10 −1 Rakefile
  3. +1 −1 lib/devise-neo4j/version.rb
  4. +10 −0 test/support/i18n.rb
  5. +0 −3 test/test_helper.rb
View
@@ -26,3 +26,6 @@ vendor
tmp
db
test/rails_app/log
+
+## NETBEANS
+nbproject
View
@@ -16,4 +16,13 @@ Rake::TestTask.new(:test) do |test|
test.verbose = true
end
-task :default => :test
+task :default => [:test, :"neo4j:db:remove"]
+
+namespace :neo4j do
+ namespace :db do
+ desc 'Remove the neo4j db files'
+ task :remove do
+ system "rm -fr #{File.join(File.dirname(__FILE__), "db", "*")}"
+ end
+ end
+end
@@ -1,5 +1,5 @@
module Devise
module Neo4j
- VERSION = "1.0.3"
+ VERSION = "1.0.2"
end
end
View
@@ -0,0 +1,10 @@
+class DeviseHelperTest < ActionController::IntegrationTest
+ setup :neo4j_i18n
+
+ private
+ def neo4j_i18n
+ I18n.backend.store_translations :fr, {
+ :neo4j => { :models => { :user => "utilisateur" } }
+ }
+ end
+end
View
@@ -37,9 +37,6 @@
# Add translations for devise tests
I18n.load_path << "#{DEVISE_PATH}/config/locales/en.yml"
-I18n.backend.store_translations :fr, {
- :neo4j => { :models => { :user => "utilisateur" } }
-}
$:.unshift File.dirname(__FILE__)
puts "\n==> Devise.orm = #{DEVISE_ORM.inspect}"

0 comments on commit 1377882

Please sign in to comment.