This conversion is done by Transpec 1.10.2 with the following command:
transpec test/unit/
* 507 conversions
from: obj.should
to: expect(obj).to
* 394 conversions
from: == expected
to: eq(expected)
* 260 conversions
from: obj.should_receive(:message)
to: expect(obj).to receive(:message)
* 85 conversions
from: obj.stub(:message)
to: allow(obj).to receive(:message)
* 25 conversions
from: its(:attr) { }
to: describe '#attr' do subject { super().attr }; it { } end
* 19 conversions
from: obj.should_not
to: expect(obj).not_to
* 7 conversions
from: obj.should_not_receive(:message)
to: expect(obj).not_to receive(:message)
* 3 conversions
from: Klass.any_instance.should_receive(:message)
to: expect_any_instance_of(Klass).to receive(:message)
38 lines
834 B
Ruby
38 lines
834 B
Ruby
require "vagrant"
|
|
require Vagrant.source_root.join("test/unit/base")
|
|
|
|
require Vagrant.source_root.join("plugins/providers/virtualbox/synced_folder")
|
|
|
|
describe VagrantPlugins::ProviderVirtualBox::SyncedFolder do
|
|
let(:machine) do
|
|
double("machine").tap do |m|
|
|
end
|
|
end
|
|
|
|
subject { described_class.new }
|
|
|
|
describe "usable" do
|
|
it "should be with virtualbox provider" do
|
|
machine.stub(provider_name: :virtualbox)
|
|
expect(subject).to be_usable(machine)
|
|
end
|
|
|
|
it "should not be with another provider" do
|
|
machine.stub(provider_name: :vmware_fusion)
|
|
expect(subject).not_to be_usable(machine)
|
|
end
|
|
end
|
|
|
|
describe "prepare" do
|
|
let(:driver) { double("driver") }
|
|
|
|
before do
|
|
machine.stub(driver: driver)
|
|
end
|
|
|
|
it "should share the folders" do
|
|
pending
|
|
end
|
|
end
|
|
end
|