spec/lib/sanitize_spec.rb in wikipedia-client-1.6.4 vs spec/lib/sanitize_spec.rb in wikipedia-client-1.7.0
- old
+ new
@@ -6,9 +6,9 @@
name = raw_filename.sub(/\/(.+?)\-raw\.txt$/, '\1')
sanitized_filename = raw_filename.sub('-raw', '-sanitized')
it "should sanitize #{name} properly" do
@raw = File.read(raw_filename)
@sanitized = File.read(sanitized_filename).strip
- Wikipedia::Page.sanitize(@raw).strip.should == @sanitized
+ expect(Wikipedia::Page.sanitize(@raw).strip).to eq(@sanitized)
end
end
end