Sha256: 746129481f1a2109de90364d1d54efc08cade963a928b1d24592780c422cd614
Contents?: true
Size: 961 Bytes
Versions: 3
Compression:
Stored size: 961 Bytes
Contents
require 'test_helper' class OodAppkitTest < ActiveSupport::TestCase test "truth" do assert_kind_of Module, OodAppkit end # FIXME: move these tests elsewhere # test "shell urls" do s = OodAppkit::Urls::Shell.new(base_url: "/sh") assert_equal "/sh/ssh/default", s.url.to_s assert_equal "/sh/ssh/oakley", s.url(host: "oakley").to_s assert_equal "/sh/ssh/oakley", s.url(host: :oakley).to_s assert_equal "/sh/ssh/oakley/nfs/gpfs", s.url(host: :oakley, path: "/nfs/gpfs").to_s assert_equal "/sh/ssh/default/nfs/gpfs", s.url(path: "/nfs/gpfs").to_s assert_equal "/sh/ssh/default/nfs/gpfs", s.url(path: Pathname.new("/nfs/gpfs")).to_s end test "files urls" do f = OodAppkit::Urls::Files.new(base_url: "/f") assert_equal "/f/fs/nfs/17/efranz/ood_dev", f.url(path: "/nfs/17/efranz/ood_dev").to_s assert_equal "/f/fs/nfs/17/efranz/ood_dev", f.url(path: Pathname.new("/nfs/17/efranz/ood_dev")).to_s end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ood_appkit-2.1.0 | test/ood_appkit_test.rb |
ood_appkit-2.0.2 | test/ood_appkit_test.rb |
ood_appkit-1.1.5 | test/ood_appkit_test.rb |