Giter VIP home page Giter VIP logo

hunt's People

Contributors

jnunemaker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hunt's Issues

specs aren't passing

I have a bunch of failing specs when i run hunt's specs. Here's the output

(in /Users/haris.amin/workspace/hunt)
Able to load bson_ext version 1.1.5, but >= 1.3.0 is required.
............FFFFFFFFFFFFFFFFFFFF

Failures:

  1. Hunt adds searches key to model to store search terms
    Failure/Error: Note.new.should respond_to(:searches)
    wrong number of arguments(1 for 0)

    ./spec/hunt_spec.rb:26:in `new'

    ./spec/hunt_spec.rb:26:in`block (2 levels) in <top (required)>'

  2. Hunt.search returns query that matches nothing if nil
    Failure/Error: Note.create(:title => 'Mongo')
    wrong number of arguments(1 for 0)

    ./spec/hunt_spec.rb:36:in `block (3 levels) in <top (required)>'

  3. Hunt.search returns query that matches nothing if blank
    Failure/Error: Note.create(:title => 'Mongo')
    wrong number of arguments(1 for 0)

    ./spec/hunt_spec.rb:41:in `block (3 levels) in <top (required)>'

  4. Hunt.search chained on scope works
    Failure/Error: @user = User.create
    wrong number of arguments(1 for 0)

    ./spec/hunt_spec.rb:47:in `block (4 levels) in <top (required)>'

  5. Hunt.search chained on association works
    Failure/Error: @user = User.create
    wrong number of arguments(1 for 0)

    ./spec/hunt_spec.rb:58:in `block (4 levels) in <top (required)>'

  6. Hunt.search with one search term returns plucky query
    Failure/Error: @note = Note.create(:title => 'MongoDB is awesome!')
    wrong number of arguments(1 for 0)

    ./spec/hunt_spec.rb:70:in `block (4 levels) in <top (required)>'

  7. Hunt.search with one search term scopes query to searches.default in stemmed terms
    Failure/Error: @note = Note.create(:title => 'MongoDB is awesome!')
    wrong number of arguments(1 for 0)

    ./spec/hunt_spec.rb:70:in `block (4 levels) in <top (required)>'

  8. Hunt.search with one search term does return matched documents
    Failure/Error: @note = Note.create(:title => 'MongoDB is awesome!')
    wrong number of arguments(1 for 0)

    ./spec/hunt_spec.rb:70:in `block (4 levels) in <top (required)>'

  9. Hunt.search with one search term does not query unmatched documents
    Failure/Error: @note = Note.create(:title => 'MongoDB is awesome!')
    wrong number of arguments(1 for 0)

    ./spec/hunt_spec.rb:70:in `block (4 levels) in <top (required)>'

  10. Hunt.search with multiple search terms returns plucky query
    Failure/Error: @note = Note.create(:title => 'MongoDB is awesome!')
    wrong number of arguments(1 for 0)
    # ./spec/hunt_spec.rb:97:in `block (4 levels) in <top (required)>'

  11. Hunt.search with multiple search terms scopes query to searches.default in stemmed terms
    Failure/Error: @note = Note.create(:title => 'MongoDB is awesome!')
    wrong number of arguments(1 for 0)
    # ./spec/hunt_spec.rb:97:in `block (4 levels) in <top (required)>'

  12. Hunt.search with multiple search terms returns documents that match both terms
    Failure/Error: @note = Note.create(:title => 'MongoDB is awesome!')
    wrong number of arguments(1 for 0)
    # ./spec/hunt_spec.rb:97:in `block (4 levels) in <top (required)>'

  13. Hunt.search with multiple search terms returns documents that match any of the terms
    Failure/Error: @note = Note.create(:title => 'MongoDB is awesome!')
    wrong number of arguments(1 for 0)
    # ./spec/hunt_spec.rb:97:in `block (4 levels) in <top (required)>'

  14. Hunt.search with multiple search terms does not query unmatched documents
    Failure/Error: @note = Note.create(:title => 'MongoDB is awesome!')
    wrong number of arguments(1 for 0)
    # ./spec/hunt_spec.rb:97:in `block (4 levels) in <top (required)>'

  15. Hunt Search indexing on one field indexes terms on create
    Failure/Error: @note = Note.create(:title => 'Woot for MongoDB!')
    wrong number of arguments(1 for 0)
    # ./spec/hunt_spec.rb:134:in `block (4 levels) in <top (required)>'

  16. Hunt Search indexing on one field indexes terms on update
    Failure/Error: @note = Note.create(:title => 'Woot for MongoDB!')
    wrong number of arguments(1 for 0)
    # ./spec/hunt_spec.rb:134:in `block (4 levels) in <top (required)>'

  17. Hunt Search indexing on multiple fields indexes merged terms on create
    Failure/Error: @note = Note.create(:title => 'Woot for MongoDB!', :body => 'This is my body.')
    wrong number of arguments(1 for 0)
    # ./spec/hunt_spec.rb:152:in `block (4 levels) in <top (required)>'

  18. Hunt Search indexing on multiple fields indexes merged terms on update
    Failure/Error: @note = Note.create(:title => 'Woot for MongoDB!', :body => 'This is my body.')
    wrong number of arguments(1 for 0)
    # ./spec/hunt_spec.rb:152:in `block (4 levels) in <top (required)>'

  19. Hunt Search indexing on multiple fields one of which is array key indexes merged terms on create
    Failure/Error: @note = Note.create(:title => 'Woot for MongoDB!', :tags => %w(mongo nosql))
    wrong number of arguments(1 for 0)
    # ./spec/hunt_spec.rb:170:in `block (4 levels) in <top (required)>'

  20. Hunt Search indexing on multiple fields one of which is array key indexes merged terms on update
    Failure/Error: @note = Note.create(:title => 'Woot for MongoDB!', :tags => %w(mongo nosql))
    wrong number of arguments(1 for 0)
    # ./spec/hunt_spec.rb:170:in `block (4 levels) in <top (required)>'

Finished in 0.4711 seconds
32 examples, 20 failures

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.