summaryrefslogtreecommitdiff
path: root/spec/ruby/library/csv/readlines_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/csv/readlines_spec.rb')
-rw-r--r--spec/ruby/library/csv/readlines_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/library/csv/readlines_spec.rb b/spec/ruby/library/csv/readlines_spec.rb
index 14dea34381..624f906489 100644
--- a/spec/ruby/library/csv/readlines_spec.rb
+++ b/spec/ruby/library/csv/readlines_spec.rb
@@ -23,7 +23,7 @@ describe "CSV#readlines" do
it "raises CSV::MalformedCSVError exception if input is illegal" do
csv = CSV.new('"quoted" field')
- -> { csv.readlines }.should raise_error(CSV::MalformedCSVError)
+ -> { csv.readlines }.should.raise(CSV::MalformedCSVError)
end
it "handles illegal input with the liberal_parsing option" do