Skip to content

Instantly share code, notes, and snippets.

@ckozus
Created September 24, 2008 13:17
Show Gist options
  • Save ckozus/12545 to your computer and use it in GitHub Desktop.
Save ckozus/12545 to your computer and use it in GitHub Desktop.
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
require 'test/unit'
class ProyectosControllerTest < ActionController::TestCase
tests Admin::ProyectosController
fixtures :proyectos
test_administrate_me do |test|
test.set_params :create, :proyecto => {:nombre => 'Zoom', :estado => Proyecto::ESTADOS.first, :inicio => Date.today}
end
end
describe Admin::ProyectosController do
#Delete this example and add some real ones
it "should use Admin::ProyectosController" do
controller.should be_an_instance_of(Admin::ProyectosController)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment