Init ci
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class ArtistController < ApplicationController
|
||||
|
||||
def view
|
||||
@artist = Artist.find(params[:id])
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,2 @@
|
||||
module ArtistHelper
|
||||
end
|
||||
@@ -0,0 +1,3 @@
|
||||
class Artist < ActiveRecord::Base
|
||||
set_table_name 'musicbrainz.bh_artist'
|
||||
end
|
||||
@@ -0,0 +1,2 @@
|
||||
<h1><% artist.name %></h1>
|
||||
<p>Find me in app/views/artist/view.rhtml</p>
|
||||
Vendored
+5
@@ -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
|
||||
@@ -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.
Reference in New Issue
Block a user