gingerhendrix-echonest 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 1
4
- :patch: 0
4
+ :patch: 1
@@ -0,0 +1,31 @@
1
+ require File.dirname(__FILE__) + "/../spec_helper"
2
+
3
+ describe "ApiRequest" do
4
+ before(:all) do
5
+ EchoNest.api_key = "API_KEY"
6
+ end
7
+
8
+ describe "uri" do
9
+ before(:each) do
10
+ @uri = EchoNest::ApiRequest.new("artist_search", :query => "Wavves").uri
11
+ end
12
+
13
+ it "should have the right resource" do
14
+ @uri.should be_starts_with("http://developer.echonest.com/api/artist_search?")
15
+ end
16
+
17
+ it "should contain query=Wavves" do
18
+ @uri.should be_include("query=Wavves") #There must be a nicer way to write this
19
+ end
20
+
21
+ it "should contain version=3" do
22
+ @uri.should be_include("version=3")
23
+ end
24
+
25
+ it "should contain api_key=API_KEY" do
26
+ @uri.should be_include("api_key=API_KEY")
27
+ end
28
+
29
+ end
30
+
31
+ end
File without changes
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gingerhendrix-echonest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gareth Andrew
@@ -34,9 +34,9 @@ files:
34
34
  - lib/echonest/audio.rb
35
35
  - lib/echonest/audio_doc.rb
36
36
  - lib/echonest/audio_results.rb
37
- - spec/echonest/api_request_test.rb
38
- - spec/echonest/audio_test.rb
39
- - spec/echonest/search_test.rb
37
+ - spec/echonest/api_request_spec.rb
38
+ - spec/echonest/audio_spec.rb
39
+ - spec/echonest/search_spec.rb
40
40
  - spec/fixtures/audio/wavves.xml
41
41
  - spec/fixtures/search_artists/wavves.xml
42
42
  - spec/spec_helper.rb
@@ -68,6 +68,6 @@ specification_version: 2
68
68
  summary: A ruby ribrary for accessing the echonest api
69
69
  test_files:
70
70
  - spec/spec_helper.rb
71
- - spec/echonest/search_test.rb
72
- - spec/echonest/api_request_test.rb
73
- - spec/echonest/audio_test.rb
71
+ - spec/echonest/audio_spec.rb
72
+ - spec/echonest/search_spec.rb
73
+ - spec/echonest/api_request_spec.rb
@@ -1,10 +0,0 @@
1
- require File.dirname(__FILE__) + "/../spec_helper"
2
-
3
- describe "ApiRequest" do
4
- before(:all) do
5
- EchoNest.api_key = "API_KEY"
6
- end
7
-
8
- it { EchoNest::ApiRequest.new("artist_search", :query => "Wavves").uri.should == "http://developer.echonest.com/api/artist_search?query=Wavves&api_key=API_KEY&version=3" }
9
-
10
- end