Skip to content

Commit

Permalink
Fix other cases of RSpec/NoExpectationExample
Browse files Browse the repository at this point in the history
  • Loading branch information
saraycp committed Oct 3, 2022
1 parent 9203d69 commit 7bf8ccb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/api/spec/controllers/webui/package_controller_spec.rb
Expand Up @@ -248,6 +248,8 @@ def remove_file_post
it 'calls delete_file method' do
allow_any_instance_of(Package).to receive(:delete_file).with('the_file')
remove_file_post

expect(flash[:success]).to eq("File 'the_file' removed successfully")
end

context 'with no permissions' do
Expand Down
2 changes: 1 addition & 1 deletion src/api/spec/models/comment_spec.rb
Expand Up @@ -13,7 +13,7 @@
describe 'save' do
it 'stores emoji' do
comment_package.body = '😁'
comment_package.save
expect { comment_package.save }.not_to raise_error
end
end

Expand Down

0 comments on commit 7bf8ccb

Please sign in to comment.