spec/unit/git/working_dir_spec.rb in r10k-1.3.5 vs spec/unit/git/working_dir_spec.rb in r10k-1.4.0
- old
+ new
@@ -5,10 +5,10 @@
include_context "fail on execution"
describe "initializing" do
it "generates a new cache for the remote" do
wd = described_class.new('master', 'git://github.com/adrienthebo/r10k-fixture-repo', '/some/nonexistent/dir')
- wd.cache.should be_kind_of R10K::Git::Cache
+ expect(wd.cache).to be_kind_of(R10K::Git::Cache)
end
it "uses the provided ref as the dirname when no dirname is given" do
wd = described_class.new('master', 'git://github.com/adrienthebo/r10k-fixture-repo', '/some/nonexistent/dir')
expect(wd.dirname).to eq('master')