Sha256: 92fdaff18ac65470aa818c6cf41ee4b5edd0e9b871b780143e2378459eab4808

Contents?: true

Size: 423 Bytes

Versions: 48

Compression:

Stored size: 423 Bytes

Contents

require 'test_helper'

class WorkPathTest < ActiveSupport::TestCase

  test 'should have a location' do
    assert Incline::WorkPath::location
    assert Dir.exist?(Incline::WorkPath::location)
    path = Incline::WorkPath::path_for 'test.file'

    File.write path, 'Hello World'
    assert File.exist?(path)
    assert_equal 'Hello World', File.read(path)

    File.delete path
    assert_not File.exist?(path)
  end

end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
incline-0.3.14 test/lib/work_path_test.rb
incline-0.3.13 test/lib/work_path_test.rb
incline-0.3.12 test/lib/work_path_test.rb
incline-0.3.11 test/lib/work_path_test.rb
incline-0.3.10 test/lib/work_path_test.rb
incline-0.3.9 test/lib/work_path_test.rb
incline-0.3.8 test/lib/work_path_test.rb
incline-0.3.7 test/lib/work_path_test.rb
incline-0.3.6 test/lib/work_path_test.rb
incline-0.3.5 test/lib/work_path_test.rb
incline-0.3.4 test/lib/work_path_test.rb
incline-0.3.3 test/lib/work_path_test.rb
incline-0.3.2 test/lib/work_path_test.rb
incline-0.3.1 test/lib/work_path_test.rb
incline-0.3.0 test/lib/work_path_test.rb
incline-0.2.36 test/lib/work_path_test.rb
incline-0.2.35 test/lib/work_path_test.rb
incline-0.2.34 test/lib/work_path_test.rb
incline-0.2.28 test/lib/work_path_test.rb
incline-0.2.27 test/lib/work_path_test.rb