Skip to content

Commit

Permalink
Merge pull request #95 from launchdarkly/eb/feature-store-unicode
Browse files Browse the repository at this point in the history
add test for Unicode in feature store serialization
  • Loading branch information
eli-darkly authored Jan 16, 2019
2 parents 23606bc + e84fbe7 commit 2a4064c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/feature_store_spec_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,14 @@ def new_version_plus(f, deltaVersion, attrs = {})
store.delete(LaunchDarkly::FEATURES, key0, feature0[:version] - 1)
expect(store.get(LaunchDarkly::FEATURES, key0)).to eq feature0
end

it "stores Unicode data correctly" do
flag = {
key: "tęst-feåtūre-flæg😺",
version: 1,
deleted: false
}
store.upsert(LaunchDarkly::FEATURES, flag)
expect(store.get(LaunchDarkly::FEATURES, flag[:key])).to eq flag
end
end

0 comments on commit 2a4064c

Please sign in to comment.