Sha256: 7f61d31f55f50146f60c26622a1105e025fc548c594204e55f620807546b3d56

Contents?: true

Size: 527 Bytes

Versions: 6

Compression:

Stored size: 527 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'

class ArticleTest < Test::Unit::TestCase
  fixtures :articles

  # Replace this with your real tests.
  def test_first
    article = articles(:first)
    assert_equal 1, article.id
    assert_equal "内容1", article.description
    assert_equal Date.parse("2007-01-01"), article.lastupdate

    article = articles(:second)
    assert_equal 2, article.id
    assert_equal "内容2", article.description
    assert_equal Date.parse("2007-01-02"), article.lastupdate
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gettext-1.10.0-mswin32 test/rails/test/unit/article_test.rb
gettext-1.10.0 test/rails/test/unit/article_test.rb
gettext-1.90.0 test/rails/test/unit/article_test.rb
gettext-1.92.0 test/rails/test/unit/article_test.rb
gettext-1.91.0 test/rails/test/unit/article_test.rb
gettext-1.93.0 test/rails/test/unit/article_test.rb