require "vagrant-hyperkit/config" require 'rspec/its' # remove deprecation warnings # (until someone decides to update the whole spec file to rspec 3.4) RSpec.configure do |config| # ... config.mock_with :rspec do |c| c.syntax = [:should, :expect] end config.expect_with :rspec do |c| c.syntax = [:should, :expect] end end describe VagrantPlugins::HYPERKIT::Config do let(:instance) { described_class.new } before :each do ENV.stub(:[] => nil) end describe "defaults" do subject do instance.tap do |o| o.finalize! end end its("memory") { should.to_s == "1024" } its("cpus") { should == 1 } end end