Permalink
Browse files

Added rackup for executing unit test server via Thin

  • Loading branch information...
1 parent 3855dbe commit 8483472ffbd96ff1c135c2635ae44f1bee972d9e @blakewatters blakewatters committed Mar 13, 2012
Showing with 8 additions and 6 deletions.
  1. +2 −3 .gitignore
  2. +3 −3 Tests/Server/server.rb
  3. +3 −0 config.ru
View
@@ -20,6 +20,5 @@ Docs/API
Examples/RKDiscussionBoardExample/discussion_board_backend/public/system/attachments/*
-# UISpecRunner cached build path
-.uispec.app
-Specs/Runner/UISpec
+# Thin
+log
@@ -1,5 +1,5 @@
#!/usr/bin/env ruby
-# RestKit Spec Server
+# RestKit Test Server
require 'rubygems'
require 'sinatra/base'
@@ -8,7 +8,7 @@
require 'ruby-debug'
Debugger.start
-# Import the RestKit Spec server
+# Import the RestKit Test server
$: << File.join(File.expand_path(File.dirname(__FILE__)), 'lib')
require 'restkit/network/authentication'
require 'restkit/network/etags'
@@ -22,7 +22,7 @@ def to_json(*args)
end
end
-class RestKit::SpecServer < Sinatra::Base
+class RestKitTestServer < Sinatra::Base
self.app_file = __FILE__
use RestKit::Network::Authentication
use RestKit::Network::ETags
View
@@ -0,0 +1,3 @@
+require File.expand_path(File.dirname(__FILE__)) + '/Tests/Server/server'
+
+run RestKitTestServer

0 comments on commit 8483472

Please sign in to comment.