towerhe / gmusic Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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)>'
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.