Sha256: 3943116e3c844360be03a7131fcdde9e3e7e1eeb0121a1cc0366c9ffe6588899

Contents?: true

Size: 974 Bytes

Versions: 4

Compression:

Stored size: 974 Bytes

Contents

# Copyright (C) 2009  Kouhei Sutou <kou@clear-code.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

class TestAssociations < Test::Unit::TestCase
  include ActiveGroongaTestUtils

  def test_belongs_to
    groonga = Bookmark.find_by_uri("http://groonga.org/")
    assert_equal(User.find_by_name("daijiro"), groonga.user)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activegroonga-0.0.7 test/test-associations.rb
activegroonga-0.0.6 test/test-associations.rb
activegroonga-0.0.1 test/test-associations.rb
activegroonga-0.0.2 test/test-associations.rb