test/spec/basic_string_spec.rb in basic101-0.1.0 vs test/spec/basic_string_spec.rb in basic101-0.2.0

- old
+ new

@@ -238,17 +238,17 @@ let(:output) {double Output} subject {described_class.new('123')} describe '#print_string' do specify do - output.should_receive(:print).with('123') + expect(output).to receive(:print).with('123') subject.print_string(output) end end describe '#print_new_line' do specify do - output.should_receive(:print).with("\n") + expect(output).to receive(:print).with("\n") subject.print_new_line(output) end end end