##// END OF EJS Templates
Fixed bad html generated in users/memberships partial (multiple </tbody> tags)...
Fixed bad html generated in users/memberships partial (multiple </tbody> tags) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4508 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r4246:a04d64881cca
r4394:f9f1bd58d6a6
Show More
http_basic_login_test.rb
31 lines | 830 B | text/x-ruby | RubyLexer
/ test / integration / api_test / http_basic_login_test.rb
Eric Davis
Move all API tests into the ApiTest module to make management easier...
r4243 require "#{File.dirname(__FILE__)}/../../test_helper"
Eric Davis
Added support for HTTP Basic access to the API. (#3920)...
r3105
Eric Davis
Move all API tests into the ApiTest module to make management easier...
r4243 class ApiTest::HttpBasicLoginTest < ActionController::IntegrationTest
Eric Davis
Added support for HTTP Basic access to the API. (#3920)...
r3105 fixtures :all
def setup
Eric Davis
Added an Admin setting to enable/disable the REST web service. (#3920)...
r3106 Setting.rest_api_enabled = '1'
Eric Davis
Added support for HTTP Basic access to the API. (#3920)...
r3105 Setting.login_required = '1'
end
def teardown
Eric Davis
Added an Admin setting to enable/disable the REST web service. (#3920)...
r3106 Setting.rest_api_enabled = '0'
Eric Davis
Added support for HTTP Basic access to the API. (#3920)...
r3105 Setting.login_required = '0'
end
# Using the NewsController because it's a simple API.
context "get /news" do
Eric Davis
Refactor: convert username/password http basic auth api tests to shoulda macros #6447...
r4246 setup do
project = Project.find('onlinestore')
EnabledModule.create(:project => project, :name => 'news')
end
Eric Davis
Added support for HTTP Basic access to the API. (#3920)...
r3105
context "in :xml format" do
Eric Davis
Refactor: convert username/password http basic auth api tests to shoulda macros #6447...
r4246 should_allow_http_basic_auth_with_username_and_password(:get, "/projects/onlinestore/news.xml")
Eric Davis
Added support for HTTP Basic access to the API. (#3920)...
r3105 end
context "in :json format" do
Eric Davis
Refactor: convert username/password http basic auth api tests to shoulda macros #6447...
r4246 should_allow_http_basic_auth_with_username_and_password(:get, "/projects/onlinestore/news.json")
Jean-Philippe Lang
Fixed: API 401 response does not include WWW-Authenticate header (#5322)....
r3565 end
Eric Davis
Added support for HTTP Basic access to the API. (#3920)...
r3105 end
end