diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-01 15:10:10 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-01 15:10:10 +0300 |
commit | 79c94e595b13bd4b4522e725e6096a41ff1a27ec (patch) | |
tree | bb55afb6b391b5d28683361024e47d175a18c8e9 /spec/helpers | |
parent | 17a47c3e305567151191ce166702bd4e35e62a7b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/json_helper_spec.rb | 36 |
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 |