require_relative '../../../kitchen/data/spec_helper'

describe jenkins_plugin('greenballs') do
  it { should be_a_jenkins_plugin }
end

describe jenkins_plugin('disk-usage') do
  it { should be_a_jenkins_plugin }
  it { should have_version('0.23') }
end

describe jenkins_plugin('copy-to-slave') do
  it { should be_a_jenkins_plugin }
  it { should have_version('1.4.3') }
end

describe jenkins_plugin('github-oauth') do
  it { should be_a_jenkins_plugin }
  it { should have_version('0.20') }
end

# Ensure one of github-oauth's deps was installed
describe jenkins_plugin('github-api') do
  it { should be_a_jenkins_plugin }
end

# Ensure a transitive dep has been installed
#
#   github-oauth -> git -> scm-api
#
describe jenkins_plugin('scm-api') do
  it { should be_a_jenkins_plugin }
end

# Ensure the jquery-ui's deps were not installed
describe jenkins_plugin('jquery') do
  it { should_not be_a_jenkins_plugin }
end

describe jenkins_plugin('build-monitor-plugin') do
  it { should be_a_jenkins_plugin }
  it { should have_version('1.6+build.135') }
end

require_relative '../../../kitchen/data/spec_helper'

describe jenkins_plugin('greenballs') do
  it { should be_a_jenkins_plugin }
end

describe jenkins_plugin('disk-usage') do
  it { should be_a_jenkins_plugin }
  it { should have_version('0.23') }
end

describe jenkins_plugin('copy-to-slave') do
  it { should be_a_jenkins_plugin }
  it { should have_version('1.4.3') }
end

describe jenkins_plugin('github-oauth') do
  it { should be_a_jenkins_plugin }
end

# Ensure one of github-oauth's deps was installed
describe jenkins_plugin('github-api') do
  it { should be_a_jenkins_plugin }
end

# Ensure a transitive dep has been installed
#
#   github-oauth -> git -> scm-api
#
describe jenkins_plugin('scm-api') do
  it { should be_a_jenkins_plugin }
end

# Ensure the jquery-ui's deps were not installed
describe jenkins_plugin('jquery') do
  it { should_not be_a_jenkins_plugin }
end

describe jenkins_plugin('build-monitor-plugin') do
  it { should be_a_jenkins_plugin }
  it { should have_version('1.6+build.135') }
end

Remove `github-oauth` specific version check in integration tests
Remove `github-oauth` specific version check in integration tests

We don’t install a specific version so this check will fail every time
`github-oauth` releases an updated plugin.
