jcnetdev-shoulda 4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CONTRIBUTION_GUIDELINES.rdoc +12 -0
- data/MIT-LICENSE +22 -0
- data/README.rdoc +123 -0
- data/Rakefile +32 -0
- data/bin/convert_to_should_syntax +40 -0
- data/init.rb +1 -0
- data/lib/shoulda.rb +43 -0
- data/lib/shoulda/active_record_helpers.rb +670 -0
- data/lib/shoulda/color.rb +77 -0
- data/lib/shoulda/controller_tests/controller_tests.rb +467 -0
- data/lib/shoulda/controller_tests/formats/html.rb +201 -0
- data/lib/shoulda/controller_tests/formats/xml.rb +170 -0
- data/lib/shoulda/gem/proc_extensions.rb +14 -0
- data/lib/shoulda/gem/shoulda.rb +246 -0
- data/lib/shoulda/general.rb +118 -0
- data/lib/shoulda/private_helpers.rb +22 -0
- data/rails/init.rb +1 -0
- data/shoulda.gemspec +109 -0
- data/tasks/list_tests.rake +23 -0
- data/tasks/yaml_to_shoulda.rake +28 -0
- data/test/README +36 -0
- data/test/fixtures/addresses.yml +3 -0
- data/test/fixtures/posts.yml +5 -0
- data/test/fixtures/taggings.yml +0 -0
- data/test/fixtures/tags.yml +9 -0
- data/test/fixtures/users.yml +6 -0
- data/test/functional/posts_controller_test.rb +43 -0
- data/test/functional/users_controller_test.rb +36 -0
- data/test/other/context_test.rb +115 -0
- data/test/other/helpers_test.rb +80 -0
- data/test/other/private_helpers_test.rb +26 -0
- data/test/rails_root/app/controllers/application.rb +25 -0
- data/test/rails_root/app/controllers/posts_controller.rb +78 -0
- data/test/rails_root/app/controllers/users_controller.rb +81 -0
- data/test/rails_root/app/helpers/application_helper.rb +3 -0
- data/test/rails_root/app/helpers/posts_helper.rb +2 -0
- data/test/rails_root/app/helpers/users_helper.rb +2 -0
- data/test/rails_root/app/models/address.rb +4 -0
- data/test/rails_root/app/models/dog.rb +4 -0
- data/test/rails_root/app/models/flea.rb +3 -0
- data/test/rails_root/app/models/post.rb +11 -0
- data/test/rails_root/app/models/tag.rb +8 -0
- data/test/rails_root/app/models/tagging.rb +4 -0
- data/test/rails_root/app/models/user.rb +17 -0
- data/test/rails_root/app/views/layouts/posts.rhtml +17 -0
- data/test/rails_root/app/views/layouts/users.rhtml +17 -0
- data/test/rails_root/app/views/posts/edit.rhtml +27 -0
- data/test/rails_root/app/views/posts/index.rhtml +25 -0
- data/test/rails_root/app/views/posts/new.rhtml +26 -0
- data/test/rails_root/app/views/posts/show.rhtml +18 -0
- data/test/rails_root/app/views/users/edit.rhtml +22 -0
- data/test/rails_root/app/views/users/index.rhtml +22 -0
- data/test/rails_root/app/views/users/new.rhtml +21 -0
- data/test/rails_root/app/views/users/show.rhtml +13 -0
- data/test/rails_root/config/boot.rb +109 -0
- data/test/rails_root/config/database.yml +4 -0
- data/test/rails_root/config/environment.rb +18 -0
- data/test/rails_root/config/environments/sqlite3.rb +0 -0
- data/test/rails_root/config/initializers/new_rails_defaults.rb +15 -0
- data/test/rails_root/config/routes.rb +6 -0
- data/test/rails_root/db/migrate/001_create_users.rb +17 -0
- data/test/rails_root/db/migrate/002_create_posts.rb +13 -0
- data/test/rails_root/db/migrate/003_create_taggings.rb +12 -0
- data/test/rails_root/db/migrate/004_create_tags.rb +11 -0
- data/test/rails_root/db/migrate/005_create_dogs.rb +11 -0
- data/test/rails_root/db/migrate/006_create_addresses.rb +13 -0
- data/test/rails_root/db/migrate/007_create_fleas.rb +11 -0
- data/test/rails_root/db/migrate/008_create_dogs_fleas.rb +12 -0
- data/test/rails_root/db/migrate/009_add_ssn_to_users.rb +9 -0
- data/test/rails_root/db/schema.rb +0 -0
- data/test/rails_root/log/.keep +0 -0
- data/test/rails_root/public/.htaccess +40 -0
- data/test/rails_root/public/404.html +30 -0
- data/test/rails_root/public/422.html +30 -0
- data/test/rails_root/public/500.html +30 -0
- data/test/rails_root/script/console +3 -0
- data/test/rails_root/script/generate +3 -0
- data/test/rails_root/vendor/plugins/.keep +0 -0
- data/test/test_helper.rb +35 -0
- data/test/unit/address_test.rb +7 -0
- data/test/unit/dog_test.rb +7 -0
- data/test/unit/flea_test.rb +7 -0
- data/test/unit/post_test.rb +14 -0
- data/test/unit/tag_test.rb +12 -0
- data/test/unit/tagging_test.rb +8 -0
- data/test/unit/user_test.rb +32 -0
- metadata +148 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
class CreateAddresses < ActiveRecord::Migration
|
|
2
|
+
def self.up
|
|
3
|
+
create_table :addresses do |t|
|
|
4
|
+
t.column :title, :string
|
|
5
|
+
t.column :addressable_id, :integer
|
|
6
|
+
t.column :addressable_type, :string
|
|
7
|
+
end
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
def self.down
|
|
11
|
+
drop_table :addresses
|
|
12
|
+
end
|
|
13
|
+
end
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# General Apache options
|
|
2
|
+
AddHandler fastcgi-script .fcgi
|
|
3
|
+
AddHandler cgi-script .cgi
|
|
4
|
+
Options +FollowSymLinks +ExecCGI
|
|
5
|
+
|
|
6
|
+
# If you don't want Rails to look in certain directories,
|
|
7
|
+
# use the following rewrite rules so that Apache won't rewrite certain requests
|
|
8
|
+
#
|
|
9
|
+
# Example:
|
|
10
|
+
# RewriteCond %{REQUEST_URI} ^/notrails.*
|
|
11
|
+
# RewriteRule .* - [L]
|
|
12
|
+
|
|
13
|
+
# Redirect all requests not available on the filesystem to Rails
|
|
14
|
+
# By default the cgi dispatcher is used which is very slow
|
|
15
|
+
#
|
|
16
|
+
# For better performance replace the dispatcher with the fastcgi one
|
|
17
|
+
#
|
|
18
|
+
# Example:
|
|
19
|
+
# RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
|
|
20
|
+
RewriteEngine On
|
|
21
|
+
|
|
22
|
+
# If your Rails application is accessed via an Alias directive,
|
|
23
|
+
# then you MUST also set the RewriteBase in this htaccess file.
|
|
24
|
+
#
|
|
25
|
+
# Example:
|
|
26
|
+
# Alias /myrailsapp /path/to/myrailsapp/public
|
|
27
|
+
# RewriteBase /myrailsapp
|
|
28
|
+
|
|
29
|
+
RewriteRule ^$ index.html [QSA]
|
|
30
|
+
RewriteRule ^([^.]+)$ $1.html [QSA]
|
|
31
|
+
RewriteCond %{REQUEST_FILENAME} !-f
|
|
32
|
+
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
|
|
33
|
+
|
|
34
|
+
# In case Rails experiences terminal errors
|
|
35
|
+
# Instead of displaying this message you can supply a file here which will be rendered instead
|
|
36
|
+
#
|
|
37
|
+
# Example:
|
|
38
|
+
# ErrorDocument 500 /500.html
|
|
39
|
+
|
|
40
|
+
ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly"
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
+
|
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
5
|
+
|
|
6
|
+
<head>
|
|
7
|
+
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
|
8
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
|
9
|
+
<style type="text/css">
|
|
10
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
|
11
|
+
div.dialog {
|
|
12
|
+
width: 25em;
|
|
13
|
+
padding: 0 4em;
|
|
14
|
+
margin: 4em auto 0 auto;
|
|
15
|
+
border: 1px solid #ccc;
|
|
16
|
+
border-right-color: #999;
|
|
17
|
+
border-bottom-color: #999;
|
|
18
|
+
}
|
|
19
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
|
20
|
+
</style>
|
|
21
|
+
</head>
|
|
22
|
+
|
|
23
|
+
<body>
|
|
24
|
+
<!-- This file lives in public/404.html -->
|
|
25
|
+
<div class="dialog">
|
|
26
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
|
27
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
|
28
|
+
</div>
|
|
29
|
+
</body>
|
|
30
|
+
</html>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
+
|
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
5
|
+
|
|
6
|
+
<head>
|
|
7
|
+
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
|
8
|
+
<title>The change you wanted was rejected (422)</title>
|
|
9
|
+
<style type="text/css">
|
|
10
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
|
11
|
+
div.dialog {
|
|
12
|
+
width: 25em;
|
|
13
|
+
padding: 0 4em;
|
|
14
|
+
margin: 4em auto 0 auto;
|
|
15
|
+
border: 1px solid #ccc;
|
|
16
|
+
border-right-color: #999;
|
|
17
|
+
border-bottom-color: #999;
|
|
18
|
+
}
|
|
19
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
|
20
|
+
</style>
|
|
21
|
+
</head>
|
|
22
|
+
|
|
23
|
+
<body>
|
|
24
|
+
<!-- This file lives in public/422.html -->
|
|
25
|
+
<div class="dialog">
|
|
26
|
+
<h1>The change you wanted was rejected.</h1>
|
|
27
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
|
28
|
+
</div>
|
|
29
|
+
</body>
|
|
30
|
+
</html>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
+
|
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
5
|
+
|
|
6
|
+
<head>
|
|
7
|
+
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
|
8
|
+
<title>We're sorry, but something went wrong (500)</title>
|
|
9
|
+
<style type="text/css">
|
|
10
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
|
11
|
+
div.dialog {
|
|
12
|
+
width: 25em;
|
|
13
|
+
padding: 0 4em;
|
|
14
|
+
margin: 4em auto 0 auto;
|
|
15
|
+
border: 1px solid #ccc;
|
|
16
|
+
border-right-color: #999;
|
|
17
|
+
border-bottom-color: #999;
|
|
18
|
+
}
|
|
19
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
|
20
|
+
</style>
|
|
21
|
+
</head>
|
|
22
|
+
|
|
23
|
+
<body>
|
|
24
|
+
<!-- This file lives in public/500.html -->
|
|
25
|
+
<div class="dialog">
|
|
26
|
+
<h1>We're sorry, but something went wrong.</h1>
|
|
27
|
+
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
|
28
|
+
</div>
|
|
29
|
+
</body>
|
|
30
|
+
</html>
|
|
File without changes
|
data/test/test_helper.rb
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
require 'fileutils'
|
|
2
|
+
# Load the environment
|
|
3
|
+
ENV['RAILS_ENV'] = 'sqlite3'
|
|
4
|
+
|
|
5
|
+
# ln rails_root/vendor/plugins/shoulda => ../../../../
|
|
6
|
+
rails_root = File.dirname(__FILE__) + '/rails_root'
|
|
7
|
+
|
|
8
|
+
FileUtils.ln_s('../../../../', "#{rails_root}/vendor/plugins/shoulda") unless File.exists?("#{rails_root}/vendor/plugins/shoulda")
|
|
9
|
+
|
|
10
|
+
require "#{rails_root}/config/environment.rb"
|
|
11
|
+
|
|
12
|
+
# Load the testing framework
|
|
13
|
+
require 'test_help'
|
|
14
|
+
silence_warnings { RAILS_ENV = ENV['RAILS_ENV'] }
|
|
15
|
+
|
|
16
|
+
# Run the migrations
|
|
17
|
+
ActiveRecord::Migration.verbose = false
|
|
18
|
+
ActiveRecord::Migrator.migrate("#{RAILS_ROOT}/db/migrate")
|
|
19
|
+
|
|
20
|
+
# Setup the fixtures path
|
|
21
|
+
Test::Unit::TestCase.fixture_path = File.join(File.dirname(__FILE__), "fixtures")
|
|
22
|
+
# $LOAD_PATH.unshift(Test::Unit::TestCase.fixture_path)
|
|
23
|
+
|
|
24
|
+
class Test::Unit::TestCase #:nodoc:
|
|
25
|
+
def create_fixtures(*table_names)
|
|
26
|
+
if block_given?
|
|
27
|
+
Fixtures.create_fixtures(Test::Unit::TestCase.fixture_path, table_names) { yield }
|
|
28
|
+
else
|
|
29
|
+
Fixtures.create_fixtures(Test::Unit::TestCase.fixture_path, table_names)
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
self.use_transactional_fixtures = false
|
|
34
|
+
self.use_instantiated_fixtures = false
|
|
35
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
|
2
|
+
|
|
3
|
+
class PostTest < Test::Unit::TestCase
|
|
4
|
+
load_all_fixtures
|
|
5
|
+
|
|
6
|
+
should_belong_to :user
|
|
7
|
+
should_belong_to :owner
|
|
8
|
+
should_have_many :tags, :through => :taggings
|
|
9
|
+
|
|
10
|
+
should_require_unique_attributes :title
|
|
11
|
+
should_require_attributes :body, :message => /wtf/
|
|
12
|
+
should_require_attributes :title
|
|
13
|
+
should_only_allow_numeric_values_for :user_id
|
|
14
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
|
2
|
+
|
|
3
|
+
class TagTest < Test::Unit::TestCase
|
|
4
|
+
load_all_fixtures
|
|
5
|
+
|
|
6
|
+
should_have_many :taggings, :dependent => :destroy
|
|
7
|
+
should_have_many :posts
|
|
8
|
+
|
|
9
|
+
should_ensure_length_at_least :name, 2
|
|
10
|
+
|
|
11
|
+
should_protect_attributes :secret
|
|
12
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
|
2
|
+
|
|
3
|
+
class UserTest < Test::Unit::TestCase
|
|
4
|
+
load_all_fixtures
|
|
5
|
+
|
|
6
|
+
should_have_many :posts
|
|
7
|
+
should_have_many :dogs
|
|
8
|
+
|
|
9
|
+
should_have_one :address
|
|
10
|
+
|
|
11
|
+
should_have_indices :email, :name, [:email, :name]
|
|
12
|
+
should_have_index :age
|
|
13
|
+
|
|
14
|
+
should_not_allow_values_for :email, "blah", "b lah"
|
|
15
|
+
should_allow_values_for :email, "a@b.com", "asdf@asdf.com"
|
|
16
|
+
should_ensure_length_in_range :email, 1..100
|
|
17
|
+
should_ensure_value_in_range :age, 1..100
|
|
18
|
+
should_protect_attributes :password
|
|
19
|
+
should_have_class_methods :find, :destroy
|
|
20
|
+
should_have_instance_methods :email, :age, :email=, :valid?
|
|
21
|
+
should_have_db_columns :name, :email, :age
|
|
22
|
+
should_have_db_column :id, :type => "integer", :primary => true
|
|
23
|
+
should_have_db_column :email, :type => "string", :default => nil, :precision => nil, :limit => 255,
|
|
24
|
+
:null => true, :primary => false, :scale => nil, :sql_type => 'varchar(255)'
|
|
25
|
+
should_require_acceptance_of :eula
|
|
26
|
+
should_require_unique_attributes :email, :scoped_to => :name
|
|
27
|
+
|
|
28
|
+
should_ensure_length_is :ssn, 9, :message => "Social Security Number is not the right length"
|
|
29
|
+
should_only_allow_numeric_values_for :ssn
|
|
30
|
+
|
|
31
|
+
should_have_readonly_attributes :name
|
|
32
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: jcnetdev-shoulda
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: "4.2"
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Tammer Saleh
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
|
|
12
|
+
date: 2008-07-04 00:00:00 -07:00
|
|
13
|
+
default_executable:
|
|
14
|
+
dependencies:
|
|
15
|
+
- !ruby/object:Gem::Dependency
|
|
16
|
+
name: rails
|
|
17
|
+
version_requirement:
|
|
18
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
19
|
+
requirements:
|
|
20
|
+
- - ">="
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: "2.1"
|
|
23
|
+
version:
|
|
24
|
+
description: Shoulda consists of test macros, assertions, and helpers added on to the Test::Unit framework
|
|
25
|
+
email: tsaleh@thoughtbot.com
|
|
26
|
+
executables: []
|
|
27
|
+
|
|
28
|
+
extensions: []
|
|
29
|
+
|
|
30
|
+
extra_rdoc_files:
|
|
31
|
+
- README.rdoc
|
|
32
|
+
files:
|
|
33
|
+
- CONTRIBUTION_GUIDELINES.rdoc
|
|
34
|
+
- MIT-LICENSE
|
|
35
|
+
- README.rdoc
|
|
36
|
+
- Rakefile
|
|
37
|
+
- bin/convert_to_should_syntax
|
|
38
|
+
- init.rb
|
|
39
|
+
- lib/shoulda/active_record_helpers.rb
|
|
40
|
+
- lib/shoulda/color.rb
|
|
41
|
+
- lib/shoulda/controller_tests
|
|
42
|
+
- lib/shoulda/controller_tests/controller_tests.rb
|
|
43
|
+
- lib/shoulda/controller_tests/formats
|
|
44
|
+
- lib/shoulda/controller_tests/formats/html.rb
|
|
45
|
+
- lib/shoulda/controller_tests/formats/xml.rb
|
|
46
|
+
- lib/shoulda/gem/proc_extensions.rb
|
|
47
|
+
- lib/shoulda/gem/shoulda.rb
|
|
48
|
+
- lib/shoulda/general.rb
|
|
49
|
+
- lib/shoulda/private_helpers.rb
|
|
50
|
+
- lib/shoulda.rb
|
|
51
|
+
- rails/init.rb
|
|
52
|
+
- shoulda.gemspec
|
|
53
|
+
- tasks/list_tests.rake
|
|
54
|
+
- tasks/yaml_to_shoulda.rake
|
|
55
|
+
has_rdoc: true
|
|
56
|
+
homepage: http://github.com/thoughtbot/shoulda
|
|
57
|
+
post_install_message:
|
|
58
|
+
rdoc_options:
|
|
59
|
+
- --main
|
|
60
|
+
- README.rdoc
|
|
61
|
+
require_paths:
|
|
62
|
+
- lib
|
|
63
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
- - ">="
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: "0"
|
|
68
|
+
version:
|
|
69
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
|
+
requirements:
|
|
71
|
+
- - ">="
|
|
72
|
+
- !ruby/object:Gem::Version
|
|
73
|
+
version: "0"
|
|
74
|
+
version:
|
|
75
|
+
requirements: []
|
|
76
|
+
|
|
77
|
+
rubyforge_project:
|
|
78
|
+
rubygems_version: 1.2.0
|
|
79
|
+
signing_key:
|
|
80
|
+
specification_version: 2
|
|
81
|
+
summary: Makes tests easy on the fingers and the eyes
|
|
82
|
+
test_files:
|
|
83
|
+
- test/fixtures/addresses.yml
|
|
84
|
+
- test/fixtures/posts.yml
|
|
85
|
+
- test/fixtures/taggings.yml
|
|
86
|
+
- test/fixtures/tags.yml
|
|
87
|
+
- test/fixtures/users.yml
|
|
88
|
+
- test/functional/posts_controller_test.rb
|
|
89
|
+
- test/functional/users_controller_test.rb
|
|
90
|
+
- test/other/context_test.rb
|
|
91
|
+
- test/other/helpers_test.rb
|
|
92
|
+
- test/other/private_helpers_test.rb
|
|
93
|
+
- test/rails_root/app/controllers/application.rb
|
|
94
|
+
- test/rails_root/app/controllers/posts_controller.rb
|
|
95
|
+
- test/rails_root/app/controllers/users_controller.rb
|
|
96
|
+
- test/rails_root/app/helpers/application_helper.rb
|
|
97
|
+
- test/rails_root/app/helpers/posts_helper.rb
|
|
98
|
+
- test/rails_root/app/helpers/users_helper.rb
|
|
99
|
+
- test/rails_root/app/models/address.rb
|
|
100
|
+
- test/rails_root/app/models/dog.rb
|
|
101
|
+
- test/rails_root/app/models/flea.rb
|
|
102
|
+
- test/rails_root/app/models/post.rb
|
|
103
|
+
- test/rails_root/app/models/tag.rb
|
|
104
|
+
- test/rails_root/app/models/tagging.rb
|
|
105
|
+
- test/rails_root/app/models/user.rb
|
|
106
|
+
- test/rails_root/app/views/layouts/posts.rhtml
|
|
107
|
+
- test/rails_root/app/views/layouts/users.rhtml
|
|
108
|
+
- test/rails_root/app/views/posts/edit.rhtml
|
|
109
|
+
- test/rails_root/app/views/posts/index.rhtml
|
|
110
|
+
- test/rails_root/app/views/posts/new.rhtml
|
|
111
|
+
- test/rails_root/app/views/posts/show.rhtml
|
|
112
|
+
- test/rails_root/app/views/users/edit.rhtml
|
|
113
|
+
- test/rails_root/app/views/users/index.rhtml
|
|
114
|
+
- test/rails_root/app/views/users/new.rhtml
|
|
115
|
+
- test/rails_root/app/views/users/show.rhtml
|
|
116
|
+
- test/rails_root/config/boot.rb
|
|
117
|
+
- test/rails_root/config/database.yml
|
|
118
|
+
- test/rails_root/config/environment.rb
|
|
119
|
+
- test/rails_root/config/environments/sqlite3.rb
|
|
120
|
+
- test/rails_root/config/initializers/new_rails_defaults.rb
|
|
121
|
+
- test/rails_root/config/routes.rb
|
|
122
|
+
- test/rails_root/db/migrate/001_create_users.rb
|
|
123
|
+
- test/rails_root/db/migrate/002_create_posts.rb
|
|
124
|
+
- test/rails_root/db/migrate/003_create_taggings.rb
|
|
125
|
+
- test/rails_root/db/migrate/004_create_tags.rb
|
|
126
|
+
- test/rails_root/db/migrate/005_create_dogs.rb
|
|
127
|
+
- test/rails_root/db/migrate/006_create_addresses.rb
|
|
128
|
+
- test/rails_root/db/migrate/007_create_fleas.rb
|
|
129
|
+
- test/rails_root/db/migrate/008_create_dogs_fleas.rb
|
|
130
|
+
- test/rails_root/db/migrate/009_add_ssn_to_users.rb
|
|
131
|
+
- test/rails_root/db/schema.rb
|
|
132
|
+
- test/rails_root/log/.keep
|
|
133
|
+
- test/rails_root/public/.htaccess
|
|
134
|
+
- test/rails_root/public/404.html
|
|
135
|
+
- test/rails_root/public/422.html
|
|
136
|
+
- test/rails_root/public/500.html
|
|
137
|
+
- test/rails_root/script/console
|
|
138
|
+
- test/rails_root/script/generate
|
|
139
|
+
- test/rails_root/vendor/plugins/.keep
|
|
140
|
+
- test/README
|
|
141
|
+
- test/test_helper.rb
|
|
142
|
+
- test/unit/address_test.rb
|
|
143
|
+
- test/unit/dog_test.rb
|
|
144
|
+
- test/unit/flea_test.rb
|
|
145
|
+
- test/unit/post_test.rb
|
|
146
|
+
- test/unit/tag_test.rb
|
|
147
|
+
- test/unit/tagging_test.rb
|
|
148
|
+
- test/unit/user_test.rb
|