Skip to content

Commit

Permalink
Better regexp test
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Mar 23, 2017
1 parent bded4e7 commit 8024375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/control/test/workflow_manager_test.rb
Expand Up @@ -342,7 +342,7 @@

it "returns the installation.xml path if the extracted package contains it" do
expect(File).to receive(:exist?).with(/installation.xml\z/).and_return(true)
expect(subject.GetControlFileFromPackage(repo_id)).to match(/\/installation\.xml\z/)
expect(subject.GetControlFileFromPackage(repo_id)).to match(/\A\/.+\/installation\.xml\z/)
end
end
end

0 comments on commit 8024375

Please sign in to comment.