Skip to content

Commit

Permalink
Pasan pruebas
Browse files Browse the repository at this point in the history
  • Loading branch information
vtamara committed Jan 5, 2022
1 parent 2499630 commit 332f6cb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ gem 'sip', # Motor generico


group :development, :test do
#gem 'byebug', platform: :mri
gem 'debug'

gem 'colorize'

Expand Down
9 changes: 9 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ GEM
colorize (0.8.1)
concurrent-ruby (1.1.9)
crass (1.0.6)
debug (1.4.0)
irb (>= 1.3.6)
reline (>= 0.2.7)
devise (4.8.1)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
Expand All @@ -148,6 +151,9 @@ GEM
activesupport (>= 5.0)
i18n (1.8.11)
concurrent-ruby (~> 1.0)
io-console (0.5.11)
irb (1.4.1)
reline (>= 0.3.0)
jbuilder (2.11.5)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
Expand Down Expand Up @@ -226,6 +232,8 @@ GEM
thor (~> 1.0)
zeitwerk (~> 2.5)
rake (13.0.6)
reline (0.3.1)
io-console (~> 0.5)
responders (3.0.1)
actionpack (>= 5.0)
railties (>= 5.0)
Expand Down Expand Up @@ -293,6 +301,7 @@ DEPENDENCIES
cocoon!
coffee-rails (~> 4.2)
colorize
debug
devise
devise-i18n
dotenv-rails
Expand Down
2 changes: 1 addition & 1 deletion lib/jn316_gen/concerns/controllers/usuarios_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def create

def edit
authorize! :edit, ::Usuario
render layout: '/application'
render layout: 'application'
end

def medio_update(usuario)
Expand Down
2 changes: 2 additions & 0 deletions test/controllers/usuarios_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class UsuariosControllerTest < ActionDispatch::IntegrationTest
apellidos: "n",
nusuario: 'nusuario',
email: '[email protected]',
rol: 1,
fechacreacion: '2014-01-01',
encrypted_password: 'x',
created_at: "2014-11-11"
Expand All @@ -45,6 +46,7 @@ class UsuariosControllerTest < ActionDispatch::IntegrationTest

test "get show: asigna el usuario requerido como @usuario" do
usuario = Usuario.create! ATRIBUTOS_VALIDOS
debugger
get usuario_url(usuario)
assert_response :success
assert_select 'dd', text: 'nusuario'
Expand Down

0 comments on commit 332f6cb

Please sign in to comment.