Sha256: 646c3d198cf824e23ecacde429472953641480b4088da0c0bfb1ee24537aaa92

Contents?: true

Size: 414 Bytes

Versions: 17

Compression:

Stored size: 414 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), "/../../helper"))

module Johnson
  module Conversions
    class FileTest < Johnson::TestCase
      def test_read_file
        File.open(__FILE__, 'rb') { |f|
          @runtime[:foo] = f
          assert_equal(f, @runtime.evaluate("foo"))
          assert_equal(File.read(__FILE__), @runtime.evaluate("foo.read()"))
        }
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
jbarnette-johnson-1.0.0.200806240111 test/johnson/conversions/file_test.rb
jbarnette-johnson-1.0.0.200807291507 test/johnson/conversions/file_test.rb
jbarnette-johnson-1.0.0.200808062051 test/johnson/conversions/file_test.rb
jbarnette-johnson-1.0.0.200808062111 test/johnson/conversions/file_test.rb
jbarnette-johnson-1.0.0.200811251942 test/johnson/conversions/file_test.rb
jbarnette-johnson-1.0.0.20081126120511 test/johnson/conversions/file_test.rb
jbarnette-johnson-1.0.0.20090127202936 test/johnson/conversions/file_test.rb
jbarnette-johnson-1.0.0.20090225110820 test/johnson/conversions/file_test.rb
jbarnette-johnson-1.0.0.20090326122910 test/johnson/conversions/file_test.rb
jbarnette-johnson-1.0.0.20090326154650 test/johnson/conversions/file_test.rb
jbarnette-johnson-1.0.0.20090326161333 test/johnson/conversions/file_test.rb
jbarnette-johnson-1.0.0.20090402144841 test/johnson/conversions/file_test.rb
jbarnette-johnson-1.0.0.20090402155420 test/johnson/conversions/file_test.rb
johnson-1.2.0 test/johnson/conversions/file_test.rb
johnson-1.1.1 test/johnson/conversions/file_test.rb
johnson-1.1.2 test/johnson/conversions/file_test.rb
johnson-1.1.0 test/johnson/conversions/file_test.rb