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>2020-11-20 00:09:07 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-11-20 00:09:07 +0300
commitdf40cd1c38116a25089930be960d511b0be732ad (patch)
tree6f32db75c0fa073a990873b4d6689390dbf3bbc3 /spec/lib/feature
parent71c85847eb6645f6cca91febd70668d544a4125d (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/feature')
-rw-r--r--spec/lib/feature/definition_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/feature/definition_spec.rb b/spec/lib/feature/definition_spec.rb
index fa0207d829a..974310d8ea9 100644
--- a/spec/lib/feature/definition_spec.rb
+++ b/spec/lib/feature/definition_spec.rb
@@ -75,7 +75,7 @@ RSpec.describe Feature::Definition do
describe '.load_from_file' do
it 'properly loads a definition from file' do
- expect(File).to receive(:read).with(path) { yaml_content }
+ expect_file_read(path, content: yaml_content)
expect(described_class.send(:load_from_file, path).attributes)
.to eq(definition.attributes)
@@ -93,7 +93,7 @@ RSpec.describe Feature::Definition do
context 'for invalid definition' do
it 'raises exception' do
- expect(File).to receive(:read).with(path) { '{}' }
+ expect_file_read(path, content: '{}')
expect do
described_class.send(:load_from_file, path)