Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed i18n problem in tests

  • Loading branch information...
commit ec0c583a41f71393ae303e54d83f5c54f2fac9f2 1 parent 59d155e
Stefan Kroes authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  ancestry.gemspec
  2. +1 −1  test/environment.rb
View
2  ancestry.gemspec
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
s.description = 'Organise ActiveRecord model into a tree structure'
s.summary = 'Ancestry allows the records of a ActiveRecord model to be organised in a tree structure, using a single, intuitively formatted database column. It exposes all the standard tree structure relations (ancestors, parent, root, children, siblings, descendants) and all of them can be fetched in a single sql query. Additional features are named_scopes, integrity checking, integrity restoration, arrangement of (sub)tree into hashes and different strategies for dealing with orphaned records.'
- s.version = '1.2.3'
+ s.version = '1.2.4'
s.author = 'Stefan Kroes'
s.email = 's.a.kroes@gmail.com'
View
2  test/environment.rb
@@ -28,7 +28,7 @@ def self.with_model options = {}
begin
model = Class.new(ActiveRecord::Base)
- (class << model; self; end).send :define_method, :model_name do; Struct.new(:human, :underscore).new 'TestNode', 'test_node'; end
+ (class << model; self; end).send :define_method, :model_name do; Struct.new(:human, :underscore, :i18n_key).new 'TestNode', 'test_node', 'test_node'; end
const_set 'TestNode', model
if primary_key_type == :string
Please sign in to comment.
Something went wrong with that request. Please try again.