Skip to content
Browse files

correcao controller spec

  • Loading branch information...
1 parent 07edd82 commit 05c9e9075b394d3c07c4042b596de210e4227b92 @rodrigoy committed Aug 29, 2009
Showing with 3 additions and 3 deletions.
  1. +1 −1 app/controllers/perfils_controller.rb
  2. +2 −2 spec/controllers/perfils_controller_spec.rb
View
2 app/controllers/perfils_controller.rb
@@ -1,5 +1,5 @@
class PerfilsController < ApplicationController
- #before_filter :login_required
+ before_filter :login_required
def show
@perfil = Perfil.find(params[:id])
View
4 spec/controllers/perfils_controller_spec.rb
@@ -6,10 +6,10 @@
end
it "deve mostrar o usuário passado como parâmetro" do
- #controller.should_receive(:login_required).and_return(true)
+ controller.should_receive(:login_required).and_return(true)
Perfil.should_receive(:find).with("1").and_return(@perfil)
get(:show, :id => "1")
- response.should be_sucess
+ response.should be_success
end
end

0 comments on commit 05c9e90

Please sign in to comment.
Something went wrong with that request. Please try again.