summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-05-03 14:52:22 -0600
committermo khan <mo@mokhan.ca>2015-05-03 14:52:22 -0600
commit25c41a6950ccb72b918719e42a129bb72f167dac (patch)
tree91d0120c7ccabcbb7d56054bc3d4f142ca5400be /spec
parentce7038a4e6533eed8d905e6003a6f3ec38aa1dd5 (diff)
start working on the rbenv recipe.
Diffstat (limited to 'spec')
-rw-r--r--spec/rbenv_spec.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/rbenv_spec.rb b/spec/rbenv_spec.rb
new file mode 100644
index 0000000..01a05d3
--- /dev/null
+++ b/spec/rbenv_spec.rb
@@ -0,0 +1,18 @@
+describe "mokhan-myface::rbenv" do
+ subject do
+ ChefSpec::SoloRunner.new do |node|
+ end.converge(described_recipe)
+ end
+
+ it 'installs rbenv' do
+ expect(subject).to sync_git("/usr/local/rbenv")
+ end
+
+ it 'creates the rbenv plugins directory' do
+ expect(subject).to create_directory('/usr/local/rbenv/plugins')
+ end
+
+ it 'installs ruby-build' do
+ expect(subject).to sync_git("/usr/local/rbenv/plugins/ruby-build")
+ end
+end