Specified host for the test env

pull/1528/head
Marek Takac 10 years ago
parent 675cd5dc5a
commit 0cb15ea00d
  1. 1
      config/environments/test.rb
  2. 2
      spec/api/work_package_resource_spec.rb

@ -69,4 +69,5 @@ OpenProject::Application.configure do
# we use per process memory for caching in the test environment
config.cache_store = :memory_store
config.action_controller.default_url_options = { host: 'localhost', port: 3000 }
end

@ -68,7 +68,7 @@ describe 'API v3 Work package resource' do
it 'should respond with work package in HAL+JSON format' do
parsed_response = JSON.parse(last_response.body)
parsed_response.should eq(expected_response)
parsed_response['id'].should eq(work_package.id)
end
context 'requesting nonexistent work package' do

Loading…
Cancel
Save