summaryrefslogtreecommitdiff
path: root/test/scanners/diff/example.expected.raydebug
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2010-03-30 22:30:08 +0000
committermurphy <murphy@rubychan.de>2010-03-30 22:30:08 +0000
commit9dc56f4b4e31d0229cd615ee8ae9bbeec7a313d7 (patch)
tree1d277cf430b2c175283a2136c31ff8745a311147 /test/scanners/diff/example.expected.raydebug
parent863839251ac1782d7e6750a2e9b1f6dc324edeb4 (diff)
downloadcoderay-9dc56f4b4e31d0229cd615ee8ae9bbeec7a313d7.tar.gz
Updated diff scanner tests.
Diffstat (limited to 'test/scanners/diff/example.expected.raydebug')
-rw-r--r--test/scanners/diff/example.expected.raydebug48
1 files changed, 24 insertions, 24 deletions
diff --git a/test/scanners/diff/example.expected.raydebug b/test/scanners/diff/example.expected.raydebug
index 3e836fa..01eae8c 100644
--- a/test/scanners/diff/example.expected.raydebug
+++ b/test/scanners/diff/example.expected.raydebug
@@ -1,27 +1,27 @@
-head[head(===================================================================)]
-head[head(--- )plain(/Users/jgoebel/rails/pastie/app/controllers/pastes_controller.rb (revision 1431\))]
-head[head(+++ )plain(/Users/jgoebel/rails/pastie/app/controllers/pastes_controller.rb (revision 1437\))]
+head[head(===================================================================)filename()]
+head[head(--- )filename(/Users/jgoebel/rails/pastie/app/controllers/pastes_controller.rb)plain( (revision 1431\))]
+head[head(+++ )filename(/Users/jgoebel/rails/pastie/app/controllers/pastes_controller.rb)plain( (revision 1437\))]
change[change(@@)plain( -1,6 +1,10 )change(@@)]
-insert[insert(+)plain(require 'login_system')]
-comment( require 'coderay')
-comment( )
-comment( class PastesController < ApplicationController)
-insert[insert(+)plain( include LoginSystem)]
+insert[insert(+)ident(require) string<delimiter(')content(login_system)delimiter(')>]
+ ident(require) string<delimiter(')content(coderay)delimiter(')>
+
+ reserved(class) class(PastesController) operator(<) constant(ApplicationController)
+insert[insert(+) ident(include) constant(LoginSystem)]
insert[insert(+)]
-insert[insert(+)plain( before_filter :attempt_cookie_login)]
-comment( )
-comment( # caches_action :recent)
-comment( )
+insert[insert(+) ident(before_filter) symbol(:attempt_cookie_login)]
+
+ comment(# caches_action :recent)
+
change[change(@@)plain( -10,11 +14,7 )change(@@)]
-comment( )
-comment( def show)
-comment( @paste = Paste.find(params[:id]\))
-delete[delete(-)plain( if params[:key] and params[:key]==User.new(@paste.nick\).magic_mojo)]
-delete[delete(-)plain( session[:login]=@paste.nick)]
-delete[delete(-)plain( return redirect_to(:action => 'show', :id => @paste.id\))]
-delete[delete(-)plain( end)]
-delete[delete(-)plain( )]
-insert[insert(+)plain( attempt_key_login if not logged_in?)]
-comment( unless @paste.asset or not @paste.body.blank?)
-comment( render :action => "edit")
-comment( end) \ No newline at end of file
+
+ reserved(def) method(show)
+ instance_variable(@paste) operator(=) constant(Paste)operator(.)ident(find)operator(()ident(params)operator([)symbol(:id)operator(])operator(\))
+delete[delete(-) reserved(if) ident(params)operator([)symbol(:key)operator(]) reserved(and) ident(params)operator([)symbol(:key)operator(])operator(==)constant(User)operator(.)ident(new)operator(()instance_variable(@paste)operator(.)ident(nick)operator(\))operator(.)ident(magic_mojo)]
+delete[delete(-) ident(session)operator([)symbol(:login)operator(])operator(=)instance_variable(@paste)operator(.)ident(nick)]
+delete[delete(-) reserved(return) ident(redirect_to)operator(()symbol(:action) operator(=)operator(>) string<delimiter(')content(show)delimiter(')>operator(,) symbol(:id) operator(=)operator(>) instance_variable(@paste)operator(.)ident(id)operator(\))]
+delete[delete(-) reserved(end)]
+delete[delete(-) ]
+insert[insert(+) ident(attempt_key_login) reserved(if) reserved(not) ident(logged_in?)]
+ reserved(unless) instance_variable(@paste)operator(.)ident(asset) reserved(or) reserved(not) instance_variable(@paste)operator(.)ident(body)operator(.)ident(blank?)
+ ident(render) symbol(:action) operator(=)operator(>) string<delimiter(")content(edit)delimiter(")>
+ reserved(end) \ No newline at end of file