"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/unit/lib/redmine/configuration_test.rb" between
redmine-4.0.3.tar.gz and redmine-4.0.4.tar.gz

About: Redmine is a flexible project management and bug-tracking web application (using the Ruby on Rails framework). It supports also project wikis and forums, documents management, and multiple version control systems.

configuration_test.rb  (redmine-4.0.3):configuration_test.rb  (redmine-4.0.4)
skipping to change at line 26 skipping to change at line 26
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA . # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA .
require File.expand_path('../../../../test_helper', __FILE__) require File.expand_path('../../../../test_helper', __FILE__)
class Redmine::ConfigurationTest < ActiveSupport::TestCase class Redmine::ConfigurationTest < ActiveSupport::TestCase
def setup def setup
@conf = Redmine::Configuration @conf = Redmine::Configuration
end end
def test_empty def test_empty
assert_kind_of Hash, load_conf('empty.yml', 'test') assert_kind_of Hash, load_conf('empty.yml.example', 'test')
end end
def test_default def test_default
assert_kind_of Hash, load_conf('default.yml', 'test') assert_kind_of Hash, load_conf('default.yml.example', 'test')
assert_equal 'foo', @conf['somesetting'] assert_equal 'foo', @conf['somesetting']
end end
def test_no_default def test_no_default
assert_kind_of Hash, load_conf('no_default.yml', 'test') assert_kind_of Hash, load_conf('no_default.yml.example', 'test')
assert_equal 'foo', @conf['somesetting'] assert_equal 'foo', @conf['somesetting']
end end
def test_overrides def test_overrides
assert_kind_of Hash, load_conf('overrides.yml', 'test') assert_kind_of Hash, load_conf('overrides.yml.example', 'test')
assert_equal 'bar', @conf['somesetting'] assert_equal 'bar', @conf['somesetting']
end end
def test_with def test_with
load_conf('default.yml', 'test') load_conf('default.yml.example', 'test')
assert_equal 'foo', @conf['somesetting'] assert_equal 'foo', @conf['somesetting']
@conf.with 'somesetting' => 'bar' do @conf.with 'somesetting' => 'bar' do
assert_equal 'bar', @conf['somesetting'] assert_equal 'bar', @conf['somesetting']
end end
assert_equal 'foo', @conf['somesetting'] assert_equal 'foo', @conf['somesetting']
end end
private private
def load_conf(file, env) def load_conf(file, env)
 End of changes. 5 change blocks. 
5 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)