Sha256: f433f1cd07a4a7986bc2843e9c19ef1d8503465e56d2a033acc9a6531f856243

Contents?: true

Size: 848 Bytes

Versions: 8

Compression:

Stored size: 848 Bytes

Contents

# To change this template, choose Tools | Templates
# and open the template in the editor.


require 'test/unit'

$:.push(File.dirname(__FILE__) +'/../../test/models')
$:.push(File.dirname(__FILE__) +'/../../lib/not_relational')

require File.dirname(__FILE__) +'/../../test/models/page_view_summary.rb'
require File.dirname(__FILE__) +'/../../test/models/page_view_detail.rb'
ENV['NOT_RELATIONAL_ENV']='testing'
class EnumTest < Test::Unit::TestCase
  def self.set_up

    PageViewSummary.find(:all).each do |node|
      node.destroy
    end
    PageViewDetail.find(:all).each do |node|
      node.destroy
    end
    
  end
  def test_foo
    self.class.set_up
        date=Time.gm(2008,12,25)

    y=PageViewSummary.new(:username=>'joe',:date=>date,:page_view_count=>6, :type=>PageViewSummary::Type::BLOG)
    assert(y.is_type_blog?)

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cloudwow-not_relational-0.1.11 test/unit_tests/enum_test.rb
cloudwow-not_relational-0.1.2 test/unit_tests/enum_test.rb
cloudwow-not_relational-0.1.3 test/unit_tests/enum_test.rb
cloudwow-not_relational-0.1.5 test/unit_tests/enum_test.rb
cloudwow-not_relational-0.1.6 test/unit_tests/enum_test.rb
cloudwow-not_relational-0.1.7 test/unit_tests/enum_test.rb
cloudwow-not_relational-0.1.8 test/unit_tests/enum_test.rb
cloudwow-not_relational-0.1.9 test/unit_tests/enum_test.rb