Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions test/jruby/test_yamlstore.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ def test_data_should_be_loaded_correctly_when_in_readonly_mode
end
end

def test_unicode_data_should_be_loaded_correctly_when_in_readonly_mode
@yamlstore.transaction do
@yamlstore[:unicode] = "Tütü"
end
@yamlstore.transaction(true) do
assert_equal "Tütü", @yamlstore[:unicode]
end
end

def test_data_should_be_loaded_correctly_when_in_readwrite_mode
@yamlstore.transaction do
@yamlstore[:foo] = "bar"
Expand All @@ -43,6 +52,15 @@ def test_data_should_be_loaded_correctly_when_in_readwrite_mode
end
end

def test_unicode_data_should_be_loaded_correctly_when_in_readwrite_mode
@yamlstore.transaction do
@yamlstore[:unicoderw] = "Tütü"
end
@yamlstore.transaction do
assert_equal "Tütü", @yamlstore[:unicoderw]
end
end

def test_changes_after_commit_are_discarded
@yamlstore.transaction do
@yamlstore[:foo] = "bar"
Expand Down