Skip to content

Commit

Permalink
Remove trailing whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
pgr0ss committed Mar 9, 2012
1 parent 380ce55 commit 383566b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/curator/mongo/data_store.rb
Expand Up @@ -39,7 +39,7 @@ def self.delete(collection_name, id)

def self.find_by_index(collection_name, field, query)
return [] if query.nil?

collection = _collection(collection_name)
documents = collection.find(field.to_sym => query)
documents.map {|doc| normalize_document(doc) }
Expand Down
2 changes: 1 addition & 1 deletion spec/curator/mongo/data_store_spec.rb
Expand Up @@ -49,7 +49,7 @@ module Mongo
id = DataStore.save(:collection_name => 'fake_things', :value => {:foo => 2})
DataStore.find_by_key('fake_things', id[:key]).should == {:key => id[:key], :data => {'foo' => 2}}
end

it 'returns an object with a key' do
object = DataStore.save(:collection_name => 'fake_things', :key => 'abc', :value => {:foo => 1})
object.should respond_to :key
Expand Down

0 comments on commit 383566b

Please sign in to comment.