spec/chef-vault/item_spec.rb in chef-vault-2.3.0 vs spec/chef-vault/item_spec.rb in chef-vault-2.4.0

- old
+ new

@@ -1,22 +1,20 @@ -require 'spec_helper' - -describe ChefVault::Item do +RSpec.describe ChefVault::Item do subject(:item) { ChefVault::Item.new("foo", "bar") } describe '#new' do it { should be_an_instance_of ChefVault::Item } its(:keys) { should be_an_instance_of ChefVault::ItemKeys } its(:data_bag) { should eq "foo" } - specify { item["id"].should eq "bar" } + specify { expect(item['id']).to eq 'bar' } - specify { item.keys["id"].should eq "bar_keys" } + specify { expect(item.keys['id']).to eq 'bar_keys' } - specify { item.keys.data_bag.should eq "foo" } + specify { expect(item.keys.data_bag).to eq 'foo' } end describe '#save' do context 'when item["id"] is bar.bar' do let(:item) { ChefVault::Item.new("foo", "bar.bar") }