diff --git a/spec/better_errors_spec.rb b/spec/better_errors_spec.rb index ef3d83c8..9d796105 100644 --- a/spec/better_errors_spec.rb +++ b/spec/better_errors_spec.rb @@ -41,7 +41,7 @@ [:atom].each do |editor| it "uses atom:// scheme when set to #{editor.inspect}" do subject.editor = editor - subject.editor[].should start_with "atom://" + expect(subject.editor[]).to start_with "atom://" end end @@ -82,7 +82,7 @@ it "uses atom:// scheme when EDITOR=#{editor}" do ENV["EDITOR"] = editor subject.editor = subject.default_editor - subject.editor[].should start_with "atom://" + expect(subject.editor[]).to start_with "atom://" end end