Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert specs to RSpec 3.0.2 syntax with Transpec
This conversion is done by Transpec 2.3.1 with the following command: transpec -f -k oneliner,have_items,its * 4 conversions from: failure_message_for_should { } to: failure_message { } * 4 conversions from: failure_message_for_should_not { } to: failure_message_when_negated { } * 1 conversion from: obj.stub(:message => value) to: allow(obj).to receive_messages(:message => value) For more details: https://github.com/yujinakayama/transpec#supported-conversions
- Loading branch information
Showing
6 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
RSpec::Matchers.define :have_selector do |selector| | ||
match { |document| !document.css(selector).empty? } | ||
failure_message_for_should { "expected document to #{name_to_sentence}#{expected_to_sentence}"} | ||
failure_message_for_should_not { "expected document to not #{name_to_sentence}#{expected_to_sentence}"} | ||
failure_message { "expected document to #{name_to_sentence}#{expected_to_sentence}"} | ||
failure_message_when_negated { "expected document to not #{name_to_sentence}#{expected_to_sentence}"} | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters