Sha256: a9deb85cf0a6f7110b5087438d4dcf0bcccdd9d0730745c7a896667142961546

Contents?: true

Size: 367 Bytes

Versions: 1

Compression:

Stored size: 367 Bytes

Contents

require 'test_helper'

class MarbleTest < ActionDispatch::IntegrationTest
  def test_render_json
    get '/', :format => :json
    assert_equal({ 'instance' => 'OK', 'local' => 'OK' }, JSON.parse(response.body))
  end
  
  def test_render_yaml
    get '/', :format => :yaml
    assert_equal({ 'instance' => 'OK', 'local' => 'OK' }, YAML.load(response.body))
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
marble-0.1.0 test/rails/test/integration/marble_test.rb