Permalink
Browse files

test profiling

  • Loading branch information...
1 parent d620e62 commit a1b850f108a76cacd7bd9dced60efb20f8002501 Nick Kallen committed Nov 25, 2008
Showing with 3 additions and 2 deletions.
  1. +1 −0 Rakefile
  2. +2 −2 lib/cache/accessor.rb
View
@@ -13,6 +13,7 @@ require 'tasks/rails'
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
+ t.spec_opts = ['--format', 'profile', '--color']
end
Spec::Rake::SpecTask.new(:coverage) do |t|
View
@@ -62,8 +62,8 @@ def expire(key)
repository.delete(cache_key(key))
end
- def cache_key(postfix)
- "#{name}/#{postfix.gsub('+', '++').gsub('-', '--').gsub("\n", "-").gsub(' ', '+')}"
+ def cache_key(key)
+ "#{name}/#{key.gsub(' ', '+')}"
end
end
end

0 comments on commit a1b850f

Please sign in to comment.