Commits

Jared Barboza committed c81de85

clean up.

Comments (0)

Files changed (3)

app/controllers/admin/debug_controller.rb

-require 'ostruct'
-class Admin::DebugController < Admin::BaseController
-	def index
-		#load the log files for the current environment
-		env = "#{::Rails.root}/log/#{::Rails.env}.log"
-		artigo = "#{::Rails.root}/log/artigo.log"
-		db = "#{::Rails.root}/log/artigo_db.log"
-		
-		#if the logs are big this is going to be PAINFULLY slow...
-		#should replace with a seek impl at some point
-		@model = OpenStruct.new :env => IO.readlines(env)[-50..-1],
-														:artigo => IO.readlines(artigo)[-50..-1],
-														:db => IO.readlines(db)[-50..-1]
-	end
-end

test/functional/admin/debug_controller_test.rb

-require 'test_helper'
-
-class Admin::DebugControllerTest < ActionController::TestCase
-  # Replace this with your real tests.
-  test "the truth" do
-    assert true
-  end
-end

test/functional/admin/masspublish_controller_test.rb

-require 'test_helper'
-
-class Admin::MasspublishControllerTest < ActionController::TestCase
-  # Replace this with your real tests.
-  test "the truth" do
-    assert true
-  end
-end