Sha256: fedaae669f6c3f664aaee77bd97588195589e9772dd8ddd161b95c718ff30d8f
Contents?: true
Size: 416 Bytes
Versions: 7
Compression:
Stored size: 416 Bytes
Contents
require 'spec_helper' module RSpec module Mocks describe 'and_return' do let(:obj) { double('obj') } context 'when no argument is passed' do it 'warns of deprection' do expect_warn_deprecation_with_call_site(__FILE__, __LINE__ + 1, '`and_return` without arguments') obj.stub(:foo).and_return expect(obj.foo).to be_nil end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems