require 'test_helper'

class ImagesControllerTest < ActionController::TestCase
  def setup
    sign_in accounts(:one)
    @image = images(:one)
  end

  test 'should show image' do
    get :show, id: @image
    assert_response :success
  end

  test 'should get edit' do
    get :edit, id: @image
    assert_response :success
  end

  test 'should update user' do
    patch :update, id: @image, image: {data: ''}
    assert_response :success
  end

end