mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-28 12:58:48 +01:00
fixes rest_api page as reported on mailing list. Thanks Eric Allen for the fix!
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@842 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
11d64d6c0a
commit
8a794b480d
2 changed files with 10 additions and 1 deletions
|
|
@ -196,7 +196,7 @@ Loading development environment (Rails 1.2.4)
|
|||
|
||||
<pre>
|
||||
<code>
|
||||
$ SITE="http://username:p4ssw0rd@<%= @request.host_with_port %>" irb \
|
||||
$ SITE="http://username:p4ssw0rd@<%= request.host_with_port %>" irb \
|
||||
-r tracks_api_wrapper.rb
|
||||
|
||||
irb(main):001:0> inbox = Tracks::Context.find :first
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ require 'integrations_controller'
|
|||
class IntegrationsController; def rescue_action(e) raise e end; end
|
||||
|
||||
class IntegrationsControllerTest < Test::Unit::TestCase
|
||||
fixtures :users, :preferences, :projects, :contexts, :todos, :tags, :taggings
|
||||
|
||||
def setup
|
||||
@controller = IntegrationsController.new
|
||||
@request = ActionController::TestRequest.new
|
||||
|
|
@ -15,4 +17,11 @@ class IntegrationsControllerTest < Test::Unit::TestCase
|
|||
def test_truth
|
||||
assert true
|
||||
end
|
||||
|
||||
def test_page_load
|
||||
login_as(:admin_user)
|
||||
get :rest_api
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue