Sha256: 877a4af7481fb1b19628f9b7c9458ae607e8d894b65a74c1228093b4597192ab
Contents?: true
Size: 733 Bytes
Versions: 15
Compression:
Stored size: 733 Bytes
Contents
require File.join(File.dirname(__FILE__),'..','..','spec_helper') describe "<%=class_name%>Controller" do include_examples "SpecHelper" 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
Version data entries
15 entries across 15 versions & 1 rubygems