Sha256: 1134368bbc17b7cabdd7b829c80dfefffd5d884b4b94d1d8999b56f9de2bccf4

Contents?: true

Size: 286 Bytes

Versions: 1

Compression:

Stored size: 286 Bytes

Contents

require 'test/unit'
require 'permit_params'

class PermitParamsTest < Test::Unit::TestCase
  include PermitParams

  def test_pemit_string
    input = { param_1: "hola" }
    output = { param_1: "hola" }
    assert_equal output, permitted_params( input, { param_1: String } )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sinatra-my-params-0.0.1 test/test_permit_params.rb