spec/components/paragraphs_spec.rb in reverse_markdown-0.8.0 vs spec/components/paragraphs_spec.rb in reverse_markdown-0.8.1
- old
+ new
@@ -4,12 +4,12 @@
let(:input) { File.read('spec/assets/paragraphs.html') }
let(:document) { Nokogiri::HTML(input) }
subject { ReverseMarkdown.convert(input) }
- it { should_not start_with "\n\n" }
- it { should start_with "First content\n\nSecond content\n\n" }
- it { should include "\n\n_Complex_\n\n Content" }
- it { should include "**Trailing whitespace:**" }
- it { should include "**Trailing non-breaking space: **" }
- it { should include "**_Combination: _**" }
+ it { is_expected.not_to start_with "\n\n" }
+ it { is_expected.to start_with "First content\n\nSecond content\n\n" }
+ it { is_expected.to include "\n\n_Complex_\n\n Content" }
+ it { is_expected.to include "**Trailing whitespace:**" }
+ it { is_expected.to include "**Trailing non-breaking space: **" }
+ it { is_expected.to include "**_Combination: _**" }
end