Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-12-19 14:01:45 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-12-19 14:01:45 +0300
commit9297025d0b7ddf095eb618dfaaab2ff8f2018d8b (patch)
tree865198c01d1824a9b098127baa3ab980c9cd2c06 /spec/helpers/json_helper_spec.rb
parent6372471f43ee03c05a7c1f8b0c6ac6b8a7431dbe (diff)
Add latest changes from gitlab-org/gitlab@16-7-stable-eev16.7.0-rc42
Diffstat (limited to 'spec/helpers/json_helper_spec.rb')
-rw-r--r--spec/helpers/json_helper_spec.rb36
1 files changed, 0 insertions, 36 deletions
diff --git a/spec/helpers/json_helper_spec.rb b/spec/helpers/json_helper_spec.rb
deleted file mode 100644
index b9dfabb1b23..00000000000
--- a/spec/helpers/json_helper_spec.rb
+++ /dev/null
@@ -1,36 +0,0 @@
-# frozen_string_literal: true
-
-require "spec_helper"
-
-RSpec.describe JsonHelper do
- let(:hash) { { "foo" => "bar" } }
- let(:json) { '{"foo":"bar"}' }
-
- describe ".json_generate" do
- subject { helper.json_generate(hash) }
-
- it "generates JSON" do
- expect(subject).to eq(json)
- end
-
- it "calls the Gitlab::Json class" do
- expect(Gitlab::Json).to receive(:generate).with(hash)
-
- subject
- end
- end
-
- describe ".json_parse" do
- subject { helper.json_parse(json) }
-
- it "parses JSON" do
- expect(subject).to eq(hash)
- end
-
- it "calls the Gitlab::Json class" do
- expect(Gitlab::Json).to receive(:parse).with(json)
-
- subject
- end
- end
-end