require File.join(File.dirname(__FILE__),'..','..','spec_helper') describe "<%=class_name%>Controller" do it_should_behave_like "SpecHelper" do include Rack::Test::Methods include Rhoconnect def app @app = Rack::URLMap.new Rhoconnect.url_map end before(:each) do setup_test_for <%=class_name%>,'testuser' # login user to establish session cookie before each test post "/rc/#{Rhoconnect::API_VERSION}/app/login", {"login" => 'testuser', "password" => ''}.to_json, {'CONTENT_TYPE'=>'application/json; charset=UTF-8'} last_response.status.should == 200 end it "should process <%=class_name%>Controller GET" do pending end it "should process <%=class_name%>Controller POST" do pending end end end