Sha256: 4089e4e696a895f29ff81698f2009e0dbe9f31fa8575c5ce9accb47d378e11fb
Contents?: true
Size: 846 Bytes
Versions: 3
Compression:
Stored size: 846 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe SousChef::Resource::Gemfile do it "uses the name as the path without an explicit path" do gemfile = resource('/path/to/project/Gemfile') gemfile.path.should == '/path/to/project/Gemfile' end it "uses an explicit path if one is given" do gemfile = resource('My Project dependencies') do path '/path/to/project/Gemfile' end gemfile.to_script # evaluate the block gemfile.path.should == '/path/to/project/Gemfile' end it "appends Gemfile to the path if it isn't there" do gemfile = resource('/path/to/project') gemfile.path.should == '/path/to/project/Gemfile' end it "makes content a protected method" do gemfile = resource('/path/to/project') gemfile.protected_methods.should include('content') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sous_chef-0.0.3 | spec/resource/gemfile_spec.rb |
sous_chef-0.0.2 | spec/resource/gemfile_spec.rb |
sous_chef-0.0.1 | spec/resource/gemfile_spec.rb |