Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

(maint) fix acceptance bundle #72

3 changes: 2 additions & 1 deletion acceptance/pre-suite/01_install_rototiller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
end
scp_to(sut, gem_name, gem_name)

rake_version = `rake --version`.split[2]
if ENV['RAKE_VER']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like you're only relying on the 'rake --version' command now... should we remove this if statement?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point. but i think we want that there so it'll just install whatever version of rake on the SUT if we aren't using rake at all, locally, for instance.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should probably check if $(which rake) or similar, but i dunno if i care enough to fix that for now.

on(sut, "gem install rake --no-document --version #{ENV['RAKE_VER']}")
on(sut, "gem install rake --no-document --version #{rake_version}")
else
on(sut, "gem install --no-document rake")
end
Expand Down