Skip to content

Commit

Permalink
Merge branch 'PR-105875466' of https://github.com/EMC-CMD/bosh-accept…
Browse files Browse the repository at this point in the history
…ance-tests into EMC-CMD-PR-105875466
  • Loading branch information
Kam Leung committed Nov 20, 2015
2 parents e20ad68 + 0800fa4 commit 2bb889d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/bat/release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def ==(other)
private

def dev?
version =~ /-dev$/
version =~ /\+dev$/
end
end
end
4 changes: 2 additions & 2 deletions spec/bat/release_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
bat_dev_releases_dir = File.join(bat_path, 'dev_releases')
FileUtils.mkdir_p(bat_dev_releases_dir)

deployment_file = File.join(bat_dev_releases_dir, 'bat-1.1-dev.yml')
deployment_file = File.join(bat_dev_releases_dir, 'bat-1.1+dev.yml')
File.open(deployment_file, 'w') { |f| f.write("CONTENT: #{deployment_file}") }
end

it 'creates a Release named "bat" with versions found in the path specified' do
release = Bat::Release.from_path(bat_path)
expect(release.name).to eq('bat')
expect(release.sorted_versions).to eq(%w(0 1 1.1-dev 12))
expect(release.sorted_versions).to eq(%w(0 1 1.1+dev 12))
expect(release.path).to eq(bat_path)
end
end
Expand Down

0 comments on commit 2bb889d

Please sign in to comment.