spec/ordered_phases_spec.rb in bebox-0.0.1 vs spec/ordered_phases_spec.rb in bebox-0.1.0

- old
+ new

@@ -26,19 +26,21 @@ end end context '99: project destroy' do + include Bebox::VagrantHelper + let(:project) { build(:project) } let(:node) { build(:node) } it 'should clean spec files' do # Test if the vagrant was halt - Bebox::Node.halt_vagrant_nodes(node.project_root) - expect(node.vagrant_box_running?).to be(false) + Bebox::VagrantHelper.halt_vagrant_nodes(node.project_root) + expect(vagrant_box_running?(node)).to be(false) # Test if the vagrant box was destroyed - node.remove_vagrant_box - expect(node.vagrant_box_exist?).to be(false) + remove_vagrant_box(node) + expect(vagrant_box_exist?(node)).to be(false) # Test if the project directory was destroyed project.destroy expect(Dir.exist?("#{project.path}")).to be(false) # Test that the local hosts file was restored puts "\nPlease provide your account password, if ask you, to restore the local hosts file.".yellow \ No newline at end of file