Sha256: 285a98437007dfe40e3390a15e4878ae51ebff0b0143cdb4e16b6f5038e69fea

Contents?: true

Size: 529 Bytes

Versions: 2

Compression:

Stored size: 529 Bytes

Contents

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

require 'helpers/unit_test_helper'
require 'helpers/performance_test_helper'

class SerializationPerformanceTest < ActionController::PerformanceTest
  fixtures :users
  
  def test_all_to_fxml
    users.to_fxml
  end
  
  def test_one_to_fxml
    users(:user_1).to_fxml
  end
  
  def test_all_to_json
    users.to_json
  end
  
  def test_one_to_json
    users(:user_1).to_json
  end
  
  def test_all_to_amf
    users.to_amf
  end
  
  def test_one_to_amf
    users(:user_1).to_amf
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
restfulx-1.3.1 test/rails/test_serialiazation_performance.rb
restfulx-1.3.0 test/rails/test_serialiazation_performance.rb