• Alexandre Friquet's avatar
    Convert specs to RSpec 3.5.4 syntax with Transpec · 8d6c87ad
    Alexandre Friquet authored
    This conversion is done by Transpec 3.3.0 with the following command:
        transpec
    
    * 705 conversions
        from: obj.should
          to: expect(obj).to
    
    * 292 conversions
        from: == expected
          to: eq(expected)
    
    * 108 conversions
        from: obj.should_not
          to: expect(obj).not_to
    
    * 99 conversions
        from: it { should ... }
          to: it { is_expected.to ... }
    
    * 12 conversions
        from: it { should_not ... }
          to: it { is_expected.not_to ... }
    
    * 12 conversions
        from: obj.should_receive(:message)
          to: expect(obj).to receive(:message)
    
    * 10 conversions
        from: obj.stub(:message)
          to: allow(obj).to receive(:message)
    
    * 1 conversion
        from: Klass.any_instance.stub(:message => value)
          to: allow_any_instance_of(Klass).to receive_messages(:message => value)
    
    * 1 conversion
        from: Klass.any_instance.stub(:message)
          to: allow_any_instance_of(Klass).to receive(:message)
    
    * 1 conversion
        from: obj.should_not_receive(:message)
          to: expect(obj).not_to receive(:message)
    
    * 1 conversion
        from: obj.stub_chain(:message1, :message2)
          to: allow(obj).to receive_message_chain(:message1, :message2)
    
    For more details: https://github.com/yujinakayama/transpec#supported-conversions
    8d6c87ad
mailer_spec.rb 1.84 KB