Permalink
Browse files

Updating hash syntax to work with older Rubies.

  • Loading branch information...
1 parent cf66d19 commit c1ea2d2ecb44a777c78e0dfb55ad24abf6c658c0 Mark Coates committed Jan 23, 2012
Showing with 8 additions and 9 deletions.
  1. +8 −9 test/test_clortho.rb
View
17 test/test_clortho.rb
@@ -4,14 +4,14 @@ class TestClortho < Test::Unit::TestCase
def setup
@fields = ['about', 'summary', 'body', 'title']
@posts = [
- (@fridge = Post.new( title: 'Is your refrigerator running? Better catch it',
- body: Post::LIPSUM,
- about: 'Hello were having the lipsum a world',
- authors: ['Thomas Mann', 'Jim Byrd'])),
- (@colonial = Post.new( title: 'The Colonial: In Full Swing',
- body: Post::LIPSUM,
- about: 'Hello were having the lipsum a world',
- authors: ['Rebecca Simmons']))
+ (@fridge = Post.new(:title => 'Is your refrigerator running? Better catch it',
+ :body => Post::LIPSUM,
+ :about => 'Hello were having the lipsum a world',
+ :authors => ['Thomas Mann', 'Jim Byrd'])),
+ (@colonial = Post.new(:title => 'The Colonial: In Full Swing',
+ :body => Post::LIPSUM,
+ :about => 'Hello were having the lipsum a world',
+ :authors => ['Rebecca Simmons']))
]
save_posts
end
@@ -51,7 +51,6 @@ def setup
assert_equal Post.search_title_keywords_for('refrigerator').count, 1
end
- # need to strip out punctuation in keywords
should 'strip out punctuation from array entries' do
@colonial.body_keywords_array.each do |keyword|
flunk if keyword =~ /^A-Za-z0-9\s/

0 comments on commit c1ea2d2

Please sign in to comment.