Sha256: f5789d2586261e167c3d3f3233ec1dac138e9c543970a13e5fd7ea36593dd6a7

Contents?: true

Size: 567 Bytes

Versions: 12

Compression:

Stored size: 567 Bytes

Contents

$:.unshift(File.dirname(__FILE__))

require 'helpers/unit_test_helper'
require 'models/location'
require 'models/note'
require 'models/project'
require 'models/task'
require 'models/user'
require 'models/simple_property'

class ToJsonTest < Test::Unit::TestCase
  fixtures :locations, :notes, :projects, :tasks, :users, :simple_properties
  
  def test_to_json_sanity
    assert_nothing_raised {users(:ludwig).to_json}
  end
  
  def test_to_json_methods
    #set_response_to users(:ludwig).to_json
    #puts users(:ludwig).to_json
    puts User.all.to_json
  end
end

Version data entries

12 entries across 12 versions & 4 rubygems

Version Path
dima-restfulx-1.2.0 test/rails/test_to_json.rb
dima-restfulx-1.2.1 test/rails/test_to_json.rb
dima-restfulx-1.2.2 test/rails/test_to_json.rb
dima-ruboss4ruby-1.1.0 test/rails/test_to_json.rb
dima-ruboss4ruby-1.1.1 test/rails/test_to_json.rb
dima-ruboss4ruby-1.1.2 test/rails/test_to_json.rb
restfulx-1.2.2 test/rails/test_to_json.rb
restfulx-1.2.1 test/rails/test_to_json.rb
restfulx-1.2.0 test/rails/test_to_json.rb
ruboss4ruby-1.1.2 test/rails/test_to_json.rb
ruboss4ruby-1.1.1 test/rails/test_to_json.rb
ruboss4ruby-1.1.0 test/rails/test_to_json.rb