summaryrefslogtreecommitdiff
path: root/spec/rubyspec/library/csv/generate_line_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/library/csv/generate_line_spec.rb')
-rw-r--r--spec/rubyspec/library/csv/generate_line_spec.rb30
1 files changed, 0 insertions, 30 deletions
diff --git a/spec/rubyspec/library/csv/generate_line_spec.rb b/spec/rubyspec/library/csv/generate_line_spec.rb
deleted file mode 100644
index cc7c8de4f0..0000000000
--- a/spec/rubyspec/library/csv/generate_line_spec.rb
+++ /dev/null
@@ -1,30 +0,0 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require 'csv'
-
-describe "CSV.generate_line" do
-
- it "generates an empty string" do
- result = CSV.generate_line([])
- result.should == "\n"
- end
-
- it "generates the string 'foo,bar'" do
- result = CSV.generate_line(["foo", "bar"])
- result.should == "foo,bar\n"
- end
-
- it "generates the string 'foo;bar'" do
- result = CSV.generate_line(["foo", "bar"], col_sep: ?;)
- result.should == "foo;bar\n"
- end
-
- it "generates the string 'foo,,bar'" do
- result = CSV.generate_line(["foo", nil, "bar"])
- result.should == "foo,,bar\n"
- end
-
- it "generates the string 'foo;;bar'" do
- result = CSV.generate_line(["foo", nil, "bar"], col_sep: ?;)
- result.should == "foo;;bar\n"
- end
-end