Coder Social home page Coder Social logo

gmusic's People

Contributors

towerhe avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gmusic's Issues

Specs not passed

The failed specs are caused by using an absolute url for the testing resources.


 1) Gmusic::Search::Engine#download without specifying a directory downloads the song and stored it in ~/Downloads/gmusic
     Failure/Error: before(:each) { subject.download(@song) }
     Mechanize::ResponseCodeError:
       404 => Net::HTTPNotFound for file:/home/jeweller/workspaces/gmusic/spec/web_pages/for_test.mp3 -- Mechanize::ResponseCodeError
     # ./lib/gmusic/search/engine.rb:60:in `block in download'
     # ./lib/gmusic/search/engine.rb:57:in `download'
     # ./spec/gmusic/search/engine_spec.rb:36:in `block (4 levels) in <top (required)>'

  2) Gmusic::Search::Engine#download without specifying a directory 
     Failure/Error: before(:each) { subject.download(@song) }
     Mechanize::ResponseCodeError:
       404 => Net::HTTPNotFound for file:/home/jeweller/workspaces/gmusic/spec/web_pages/for_test.mp3 -- Mechanize::ResponseCodeError
     # ./lib/gmusic/search/engine.rb:60:in `block in download'
     # ./lib/gmusic/search/engine.rb:57:in `download'
     # ./spec/gmusic/search/engine_spec.rb:36:in `block (4 levels) in <top (required)>'

  3) Gmusic::Search::Engine#download specified a directory downloads ths song and stored it the given directory
     Failure/Error: before(:each) { subject.download(@song, store_path) }
     Mechanize::ResponseCodeError:
       404 => Net::HTTPNotFound for file:/home/jeweller/workspaces/gmusic/spec/web_pages/for_test.mp3 -- Mechanize::ResponseCodeError
     # ./lib/gmusic/search/engine.rb:60:in `block in download'
     # ./lib/gmusic/search/engine.rb:57:in `download'
     # ./spec/gmusic/search/engine_spec.rb:49:in `block (4 levels) in <top (required)>'

  4) Gmusic::Search::Engine#download specified a directory 
     Failure/Error: before(:each) { subject.download(@song, store_path) }
     Mechanize::ResponseCodeError:
       404 => Net::HTTPNotFound for file:/home/jeweller/workspaces/gmusic/spec/web_pages/for_test.mp3 -- Mechanize::ResponseCodeError
     # ./lib/gmusic/search/engine.rb:60:in `block in download'
     # ./lib/gmusic/search/engine.rb:57:in `download'
     # ./spec/gmusic/search/engine_spec.rb:49:in `block (4 levels) in <top (required)>'

Integration Tests Problems

When I exec cucumber to run the integration tests, it stopped at:

# language: zh-CN
功能: 歌曲搜索和下载
  为了方便的搜索歌曲
  作为一个CLI
  我必须提供相应的搜索命令

  @announce-stdout
  场景: 歌曲搜索                                  # features/gmusic/song.feature:8
    当我运行`gmusic search --title bad-romance` # features/step_definitions/search_steps.rb:2

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.