core: get tests passing for changes

This commit is contained in:
Mitchell Hashimoto 2014-01-07 16:29:05 -08:00
parent 40babfc3f7
commit c1d56da1ca
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
shared_context "capability_helpers" do
def detect_class(result)
Class.new do
define_method(:detect?) do
define_method(:detect?) do |*args|
result
end
end

View File

@ -225,8 +225,8 @@ describe Vagrant::Machine do
it "should return the configured guest" do
result = instance.guest
result.should be_kind_of(Vagrant::Guest)
result.ready?.should be
result.chain[0][0].should == :test
expect(result).to be_ready
expect(result.capability_host_chain[0][0]).to eql(:test)
end
end