Skip to content

Commit

Permalink
Test for contentise
Browse files Browse the repository at this point in the history
  • Loading branch information
pikesley committed Jan 16, 2016
1 parent e6805b4 commit a75b365
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/curacao/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Curacao
VERSION = "0.1.2"
VERSION = "0.1.3"
end
21 changes: 21 additions & 0 deletions spec/string_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,25 @@
expect('/Monorail/'.matches 'Lyle Lanley').to be false
end
end

it 'turns a string into a contentised array' do
expect(
"""
This
is some
text
that was
a blank line
""".contentise
).to eq (
[
'This',
'is some',
'text',
'that was',
'a blank line'
]
)
end
end

0 comments on commit a75b365

Please sign in to comment.