Skip to content

Commit

Permalink
added require statement to rspec map/reduce testing example
Browse files Browse the repository at this point in the history
  • Loading branch information
langalex committed Oct 30, 2009
1 parent 505b47a commit d6cec2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ Couch Potato provides custom RSpec matchers for testing the map and reduce funct
end

#RSpec
require 'couch_potato/rspec/matchers'

describe User, 'by_name' do
it "should map users to their name" do
User.by_name.should map({:name => 'bill', :age => 23}).to([['bill', null]])
Expand Down

0 comments on commit d6cec2c

Please sign in to comment.