This commit is contained in:
System Administrator
2011-03-31 06:01:16 +04:00
parent 4c4b0d310d
commit 78da6e4f11
88 changed files with 21309 additions and 0 deletions
@@ -0,0 +1,6 @@
class ArtistController < ApplicationController
def view
@artist = Artist.find(params[:id])
end
end
+2
View File
@@ -0,0 +1,2 @@
module ArtistHelper
end
+3
View File
@@ -0,0 +1,3 @@
class Artist < ActiveRecord::Base
set_table_name 'musicbrainz.bh_artist'
end
+2
View File
@@ -0,0 +1,2 @@
<h1><% artist.name %></h1>
<p>Find me in app/views/artist/view.rhtml</p>
+5
View File
@@ -0,0 +1,5 @@
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
one:
id: 1
two:
id: 2
@@ -0,0 +1,18 @@
require File.dirname(__FILE__) + '/../test_helper'
require 'artist_controller'
# Re-raise errors caught by the controller.
class ArtistController; def rescue_action(e) raise e end; end
class ArtistControllerTest < Test::Unit::TestCase
def setup
@controller = ArtistController.new
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
end
# Replace this with your real tests.
def test_truth
assert true
end
end
+10
View File
@@ -0,0 +1,10 @@
require File.dirname(__FILE__) + '/../test_helper'
class ArtistTest < Test::Unit::TestCase
fixtures :artists
# Replace this with your real tests.
def test_truth
assert true
end
end
Binary file not shown.