features/step_definitions/filesystem_steps.rb in berkshelf-3.0.0.beta1 vs features/step_definitions/filesystem_steps.rb in berkshelf-3.0.0.beta2

- old
+ new

@@ -248,5 +248,12 @@ file "Berksfile" do contains content end } end + +Then(/^the directory "(.*?)" should contain version "(.*?)" of the "(.*?)" cookbook$/) do |path, version, name| + cookbook_path = File.join(current_dir, path) + cookbook = Berkshelf::CachedCookbook.from_path(cookbook_path) + expect(cookbook.version).to eql(version) + expect(cookbook.cookbook_name).to eql(name) +end