summaryrefslogtreecommitdiff
path: root/test/integration/default/serverspec/ruby_spec.rb
blob: bfcd7b3203bcaa3a776369a1d498f3bc8e1ef60e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'serverspec'

set :backend, :exec

describe "ruby" do
  it 'installs the default version of ruby' do
    expect(command("/usr/local/rbenv/shims/ruby -v").stdout).to match(/2\.2\.3/)
  end

  it 'installs bundler' do
    expect(file("/usr/local/rbenv/shims/bundle")).to be_file
  end
end