spec/spec_helper.rb in jberkel-spotify-api-0.0.2 vs spec/spec_helper.rb in jberkel-spotify-api-0.0.3
- old
+ new
@@ -7,5 +7,30 @@
Spec::Runner.configure do |config|
config.include Rack::Test::Methods
end
+module Helpers
+ def spotify_hex_id
+ '4d921ebcdd8c80f32ce1ed5acafbb9c8'
+ end
+
+ def spotify_uri
+ '2mnbxTkghYtlHMdX3jdP9C'
+ end
+
+ def empty_playlist
+ Jotify::Media::Playlist.new
+ end
+
+ def empty_track
+ Jotify::Media::Track.new
+ end
+
+ def empty_album
+ Jotify::Media::Album.new
+ end
+end
+
+Spec::Example::ExampleMethods.send(:include, Helpers)
+
+