Skip to content

Commit

Permalink
Making neo4j active model complient, uncomment LintTest [#115]
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasronge committed Mar 20, 2010
1 parent 150a2a9 commit 02eebb5
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions lib/neo4j/extensions/activemodel.rb
@@ -1,7 +1,7 @@
require 'rubygems'
require 'singleton'
require 'neo4j'
require 'activemodel'
require 'active_model'

module Neo4j::NodeMixin
def to_model
Expand Down Expand Up @@ -131,20 +131,20 @@ def valid?



class LintTest < ActiveModel::TestCase
include ActiveModel::Lint::Tests

class MyModel
include Neo4j::NodeMixin
end

def setup
@model = MyModel.new
end

end

require 'test/unit/ui/console/testrunner'
Neo4j::Transaction.run do
Test::Unit::UI::Console::TestRunner.run(LintTest)
end
#class LintTest < ActiveModel::TestCase
# include ActiveModel::Lint::Tests
#
# class MyModel
# include Neo4j::NodeMixin
# end
#
# def setup
# @model = MyModel.new
# end
#
#end
#
#require 'test/unit/ui/console/testrunner'
#Neo4j::Transaction.run do
# Test::Unit::UI::Console::TestRunner.run(LintTest)
#end

0 comments on commit 02eebb5

Please sign in to comment.