Sha256: 7db044b10d2649a6e0ef46758b8e9b7426fd0c2a245520dab546182036c1d8fd

Contents?: true

Size: 331 Bytes

Versions: 2

Compression:

Stored size: 331 Bytes

Contents

require 'test_helper'

class ViewTest < ActionDispatch::IntegrationTest

  test 'handler' do
    users = %w(mario juan).map do |name|
      User.create(name: name).slice :name
    end

    get '/users.json'
    assert_equal users.to_json, response.body

    get '/users.xml'
    assert_equal users.to_xml, response.body
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tuning-4.0.1.1 test/view_test.rb
tuning-4.0.1.0 test/view_test.rb