spec/gemirro/configuration_spec.rb in gemirro-0.6.0 vs spec/gemirro/configuration_spec.rb in gemirro-0.7.0

- old
+ new

@@ -55,16 +55,16 @@ before(:each) do @config = Configuration.new end it 'return mirror directory' do - @config.should_receive(:gems_directory).once.and_return('/tmp') + allow(@config).to receive(:gems_directory).once.and_return('/tmp') expect(@config.mirror_directory).to be_a(MirrorDirectory) expect(@config.mirror_directory.path).to eq('/tmp') end it 'should return gems directory' do - @config.should_receive(:destination).once.and_return('/tmp') + allow(@config).to receive(:destination).once.and_return('/tmp') expect(@config.gems_directory).to eq('/tmp/gems') end it 'should return ignored gems' do expect(@config.ignored_gems).to eq(Hash.new)