This conversion is done by Transpec 2.3.8 with the following command: transpec * 103 conversions from: obj.should_receive(:message) to: expect(obj).to receive(:message) * 24 conversions from: obj.should to: expect(obj).to * 23 conversions from: obj.stub(:message) to: allow(obj).to receive(:message) * 7 conversions from: obj.should_not_receive(:message) to: expect(obj).not_to receive(:message) * 6 conversions from: be_false to: be_falsey * 6 conversions from: be_true to: be_truthy * 5 conversions from: == expected to: eq(expected) * 5 conversions from: obj.unstub(:message) to: allow(obj).to receive(:message).and_call_original * 1 conversion from: obj.should have(n).watchers to: expect(obj.watchers.size).to eq(n) For more details: https://github.com/yujinakayama/transpec#supported-conversions
Update expected regexes and tests to check .coffee.md and .litcoffee, with an eye out for improperly escaped period characters.
The coffeescript compiler accepts various file and path options to help the browser find the original source files that the map refers to. sourceFiles - name of the original sources. sourceRoot - Root url the browser prepends to all sourceFiles. It's useful to override this if you want to change where/how these files are served, like adding authentication. generatedFile - I'm actually not sure why this is necessary, since the generated file itself should refer to the map. I added in an effort to closely match the output of the coffee binary.