sous-chefs / maven

Development repository for the maven cookbook
https://supermarket.chef.io/cookbooks/maven
Apache License 2.0
36 stars 153 forks source link

Add ChefSpec matchers for :install and :put. #52

Closed dluchinienoc closed 8 years ago

dluchinienoc commented 9 years ago

I test my code using ChefSpec and would like to be able to test that I have correctly deployed a Maven artifact.

An example test case might look like:

  it 'deploys dependency X to Tomcat' do
    expect(chef_run).to put_maven_artifact('X').with(
      dest: '/usr/local/tomcat/lib',
      group_id: 'org.test',
      version: '1.0'
    )
  end
tas50 commented 8 years ago

Thanks. I'll try to get this out today in 2.0.1