Sha256: b85f3850efa2327dad0e59e2c4804063a91edaa2edb2d9305530704b5c8eac2e
Contents?: true
Size: 962 Bytes
Versions: 1
Compression:
Stored size: 962 Bytes
Contents
#http://m.onkey.org/2010/1/22/active-record-query-interface require File.join(File.dirname(__FILE__), '..', 'test_helper') module TaliaCore # Test the ActiveSource class ActiveSourceFinderInterfaceTest < ActiveSupport::TestCase fixtures :active_sources, :semantic_properties, :semantic_relations, :data_records def setup setup_once(:test_file) { File.join(ActiveSupport::TestCase.fixture_path, 'generic_test.xml') } setup_once(:default_sources) do raise NotImplementedError end end def test_where #result = ActiveSource.find(:all, :find_through => ['http://testvalue.org/pred_find_through', active_sources(:find_through_target).uri]) result = ActiveSource.where('http://testvalue.org/pred_find_through' => active_sources(:find_through_target).uri) assert_equal(1, result.size) assert_equal(active_sources(:find_through_test), result[0]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
talia_core-0.7.0 | test/talia_core/active_source_finder_interface_test.rb |