Adding rails part #2

This commit is contained in:
magnolia-fan
2011-04-03 20:21:05 +04:00
parent 6571a3ae0a
commit ede7fc1cb5
58 changed files with 10715 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
# This model initially had no columns defined. If you add columns to the
# model remove the '{}' from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
one: {}
# column: value
#
two: {}
# column: value
@@ -0,0 +1,8 @@
require 'test_helper'
class ArtistControllerTest < ActionController::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
end
+9
View File
@@ -0,0 +1,9 @@
require 'test_helper'
require 'rails/performance_test_help'
# Profiling results for each test method are written to tmp/performance.
class BrowsingTest < ActionDispatch::PerformanceTest
def test_homepage
get '/'
end
end
+13
View File
@@ -0,0 +1,13 @@
ENV["RAILS_ENV"] = "test"
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
class ActiveSupport::TestCase
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
#
# Note: You'll currently still have to declare fixtures explicitly in integration tests
# -- they do not yet inherit this setting
fixtures :all
# Add more helper methods to be used by all tests here...
end
+8
View File
@@ -0,0 +1,8 @@
require 'test_helper'
class ArtistsTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
end
@@ -0,0 +1,4 @@
require 'test_helper'
class ArtistHelperTest < ActionView::TestCase
end