ADDED various models: playlist, track, artist, youtube_rating

This commit is contained in:
Thomas Buchöster
2011-06-06 02:25:25 +02:00
parent 9ad56ebe73
commit 00e1b4bdd3
29 changed files with 231 additions and 32 deletions
+7
View File
@@ -0,0 +1,7 @@
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
one:
name: MyString
two:
name: MyString
+9
View File
@@ -0,0 +1,9 @@
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
one:
name: MyString
owner:
two:
name: MyString
owner:
+13
View File
@@ -0,0 +1,13 @@
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
one:
playlist:
track:
youtube_id: MyString
position: 1
two:
playlist:
track:
youtube_id: MyString
position: 1
+9
View File
@@ -0,0 +1,9 @@
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
one:
title: MyString
artist:
two:
title: MyString
artist:
+11
View File
@@ -0,0 +1,11 @@
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
one:
search_query: MyString
video_id: MyString
rating: 1
two:
search_query: MyString
video_id: MyString
rating: 1
@@ -1,14 +1,5 @@
require 'test_helper'
class ArtistControllerTest < ActionController::TestCase
test "should get show" do
get :show
assert_response :success
end
test "should get index" do
get :index
assert_response :success
end
end
-4
View File
@@ -1,9 +1,5 @@
require 'test_helper'
class HomeControllerTest < ActionController::TestCase
test "should get index" do
get :index
assert_response :success
end
end
@@ -1,9 +1,5 @@
require 'test_helper'
class SearchControllerTest < ActionController::TestCase
test "should get index" do
get :index
assert_response :success
end
end
@@ -1,9 +1,5 @@
require 'test_helper'
class TracksControllerTest < ActionController::TestCase
test "should get index" do
get :index
assert_response :success
end
end
+8
View File
@@ -0,0 +1,8 @@
require 'test_helper'
class ArtistTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
end
+8
View File
@@ -0,0 +1,8 @@
require 'test_helper'
class PlaylistTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
end
+8
View File
@@ -0,0 +1,8 @@
require 'test_helper'
class TrackInfoTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
end
+8
View File
@@ -0,0 +1,8 @@
require 'test_helper'
class TrackTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
end
+8
View File
@@ -0,0 +1,8 @@
require 'test_helper'
class YoutubeVideoRatingTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
end