twitter/secureheaders — pull request #89 by loganhasson (2014-05-16 02:09:52+00:00)
Title: Convert specs to RSpec 2.14.8 syntax with transpec

This conversion is done by Transpec 1.13.1 with the following command:
transpec

* 75 conversions
from: obj.should
to: expect(obj).to

* 54 conversions
from: == expected
to: eq(expected)

* 14 conversions
from: obj.stub(:message)
to: allow(obj).to receive(:message)

* 13 conversions
from: lambda { }.should
to: expect { }.to

* 10 conversions
from: lambda { }.should_not
to: expect { }.not_to

* 8 conversions
from: =~ /pattern/
to: match(/pattern/)

* 8 conversions
from: obj.should_receive(:message)
to: expect(obj).to receive(:message)

* 5 conversions
from: obj.should_not_receive(:message)
to: expect(obj).not_to receive(:message)

* 3 conversions
from: obj.should_not
to: expect(obj).not_to

* 1 conversion
from: Klass.any_instance.stub(:message)
to: allow_any_instance_of(Klass).to receive(:message)