class TraceTest < ActiveSupport::TestCase
api_fixtures
-
+
def setup
@gpx_trace_dir = Object.send("remove_const", "GPX_TRACE_DIR")
Object.const_set("GPX_TRACE_DIR", File.dirname(__FILE__) + "/../traces")
check_query(Trace.visible_to(3), [:public_trace_file, :identifiable_trace_file])
end
- def test_public
- check_query(Trace.public, [:public_trace_file, :identifiable_trace_file, :deleted_trace_file])
+ def test_visible_to_all
+ check_query(Trace.visible_to_all, [:public_trace_file, :identifiable_trace_file, :deleted_trace_file])
end
def test_tagged