~statik/ubuntu/karmic/couchdb/fix-bug427036

« back to all changes in this revision

Viewing changes to test/couch_config_writer_test.erl

  • Committer: Bazaar Package Importer
  • Author(s): Ken VanDine, Elliot Murphy
  • Date: 2009-08-24 15:44:14 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090824154414-c9fytg3azvyuc8z3
Tags: 0.10.0~svn806985-0ubuntu1
* First snapshot of couchdb 0.10pre, from
  http://build.couchdb.org/0.10.x-UNOFFICIAL (LP: #418288)
* debian/postinst
  - Make /etc/couchdb/local.ini world readable (LP: #403575)

[Elliot Murphy]
* Added debian/patches/oauth_ini_users.patch from
  http://issues.apache.org/jira/browse/COUCHDB-478

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
% Licensed under the Apache License, Version 2.0 (the "License"); you may not
 
2
% use this file except in compliance with the License. You may obtain a copy of
 
3
% the License at
 
4
%
 
5
%   http://www.apache.org/licenses/LICENSE-2.0
 
6
%
 
7
% Unless required by applicable law or agreed to in writing, software
 
8
% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 
9
% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 
10
% License for the specific language governing permissions and limitations under
 
11
% the License.
 
12
 
1
13
% couch_config_writer module test suote
2
14
 
3
15
% Set up test suite
4
 
% ?MODULE_test() returns a list of functions 
 
16
% ?MODULE_test() returns a list of functions
5
17
% that run the actual tests.
6
18
% todo, fix replace_existing_variable2 (i.e. reordering)
7
19
couch_config_writer_test() ->
186
198
 
187
199
    % call replace function
188
200
    [couch_config_writer:save_to_file(ConfigVar, Filename) || ConfigVar <- Config],
189
 
    
 
201
 
190
202
    % compare new file with expected file
191
203
    {ok, Result_} = file:read_file(Filename),
192
204
    Result = binary_to_list(Result_),
193
205
 
194
206
    % clean up
195
207
    % file:delete(Filename),
196
 
    
 
208
 
197
209
    Result = Expect.