Skip to content

Commit

Permalink
Fix unit tests on fresh checkout.
Browse files Browse the repository at this point in the history
`bundle exec rake` should run with no errors on ruby-2.0.0-p353 which is
the same version embedded in vagrant 1.6.5 on Windows.
  • Loading branch information
causton81 committed Oct 17, 2014
1 parent 4a7151d commit f252d46
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

.bundle
pkg/*
Gemfile.lock

.rspec

Expand All @@ -14,4 +13,4 @@ Vagrantfile
example_box/*.box
scripts/*

*~
*~
3 changes: 2 additions & 1 deletion spec/vagrant-softlayer/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
it "should not default disk_capacity if overriden" do
config.send("disk_capacity=".to_sym, { 0 => 100, 2 => 25 } )
config.finalize!
expect(config.send("disk_capacity")).to eq { 0 => 100, 2 => 25 }
expect(config.send("disk_capacity")).to eq({ 0 => 100, 2 => 25 })
end
end
end
Expand Down Expand Up @@ -255,6 +255,7 @@
end

it "should fail if operating system and image_guid are both specified" do
config.disk_capacity = nil
config.image_guid = "AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE"
config.operating_system = "UBUNTU_LATEST"
config.finalize!
Expand Down
2 changes: 1 addition & 1 deletion vagrant-softlayer.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ Gem::Specification.new do |spec|

spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec"
spec.add_development_dependency "rspec", "<2.99"
end

0 comments on commit f252d46

Please sign in to comment.