spec/chars_spec.rb in chars-0.3.0 vs spec/chars_spec.rb in chars-0.3.1
- old
+ new
@@ -94,21 +94,21 @@
it "must contain all alpha-numeric characters" do
expect(subject.chars).to match_array(alpha_numeric_chars)
end
end
- let(:punctuation_chars) { " !\"'(),-.:;?[]`{}~".chars }
+ let(:punctuation_chars) { "!\"'(),-.:;?[]`{}~".chars }
describe "PUNCTUATION" do
subject { described_class::PUNCTUATION }
it "must contain all punctuation characters" do
expect(subject.chars).to match_array(punctuation_chars)
end
end
- let(:symbolic_chars) { " !\"\#$%&'()*+,-./:;<=>?@[\\]^_`{|}~".chars }
+ let(:symbolic_chars) { "!\"\#$%&'()*+,-./:;<=>?@[\\]^_`{|}~".chars }
describe "SYMBOLS" do
subject { described_class::SYMBOLS }
it "must contain all symbolic characters" do
@@ -143,15 +143,15 @@
end
describe "PRINTABLE" do
subject { described_class::PRINTABLE }
- it "must contain all alpha-numeric, punctuation, symbols, and whitespace characters" do
+ it "must contain all alpha-numeric, punctuation, symbols, and space characters" do
expect(subject.chars).to match_array(
alpha_numeric_chars |
punctuation_chars |
symbolic_chars |
- whitespace_chars
+ [' ']
)
end
end
describe "CONTROL" do