Skip to content

Commit

Permalink
Extend spec to look for linkinfo information
Browse files Browse the repository at this point in the history
  • Loading branch information
vpereira committed Feb 21, 2020
1 parent 63b5dcb commit 458bb5f
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 77 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions src/api/spec/models/bs_request_action_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,19 @@
describe 'create_expand_package' do
before do
allow(User).to receive(:session!).and_return(user)
allow(Backend::Api::BuildResults::Binaries).to receive(:files).and_return(binary_list)
allow(Backend::Api::BuildResults::Binaries).to receive(:history).and_return(build_history)
allow(Directory).to receive(:hashed).and_return(hashed)
end

let(:hashed) do
{
'linkinfo' => { 'project' => target_prj.name, 'package' => target_pkg.name,
'srcmd5' => 'aaee591c4043f45e369dd8b022ce1a7b',
'xsrcmd5' => 'ab6a14a292165f7f9eb012fc9528224a',
'lsrcmd5' => '683e6f3cee9a19e1e839dcc61cbc6256' },
'srcmd5' => 'ef521827053c2e3b3cc735662c5d5bb0'
}
end

let(:binary_list) do
Expand Down

0 comments on commit 458bb5f

Please sign in to comment.