Sha256: 00f5f66b147b2d50793896f23c0da4724e633cab9fe3d87754fbe68df9ad0b24

Contents?: true

Size: 332 Bytes

Versions: 2

Compression:

Stored size: 332 Bytes

Contents

require 'test_helper'

class LabelsControllerTest < ActionController::TestCase
  test "should get index" do
    get :index, post_id: 1
    assert_response :success
  end

  test "should get show" do
    get :show, post_id: 1, id: 1
    assert_response :success
    assert_equal('user1', JSON.parse(response.body)['user'])
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lina-0.0.4 test/dummy/test/controllers/labels_controller_test.rb
lina-0.0.3 test/dummy/test/controllers/labels_controller_test.rb