user_stamp 0.0.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.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +65 -0
- data/Rakefile +40 -0
- data/config/routes.rb +28 -0
- data/lib/generators/user_stamp/USAGE +9 -0
- data/lib/generators/user_stamp/templates/user_stamp.template +26 -0
- data/lib/generators/user_stamp/user_stamp_generator.rb +34 -0
- data/lib/tasks/user_stamp_tasks.rake +4 -0
- data/lib/user_stamp.rb +36 -0
- data/lib/user_stamp/app_controller.rb +40 -0
- data/lib/user_stamp/config.rb +60 -0
- data/lib/user_stamp/engine.rb +37 -0
- data/lib/user_stamp/user.rb +41 -0
- data/lib/user_stamp/user_stamp.rb +62 -0
- data/lib/user_stamp/version.rb +29 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/javascripts/materials.js +2 -0
- data/test/dummy/app/assets/javascripts/products.js +2 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/assets/stylesheets/materials.css +4 -0
- data/test/dummy/app/assets/stylesheets/products.css +4 -0
- data/test/dummy/app/controllers/application_controller.rb +33 -0
- data/test/dummy/app/controllers/materials_controller.rb +83 -0
- data/test/dummy/app/controllers/products_controller.rb +83 -0
- data/test/dummy/app/helpers/application_helper.rb +28 -0
- data/test/dummy/app/helpers/materials_helper.rb +28 -0
- data/test/dummy/app/helpers/products_helper.rb +28 -0
- data/test/dummy/app/models/material.rb +43 -0
- data/test/dummy/app/models/product.rb +40 -0
- data/test/dummy/app/models/user.rb +36 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/materials/_form.html.erb +33 -0
- data/test/dummy/app/views/materials/edit.html.erb +6 -0
- data/test/dummy/app/views/materials/index.html.erb +29 -0
- data/test/dummy/app/views/materials/new.html.erb +6 -0
- data/test/dummy/app/views/materials/show.html.erb +28 -0
- data/test/dummy/app/views/products/_form.html.erb +33 -0
- data/test/dummy/app/views/products/edit.html.erb +6 -0
- data/test/dummy/app/views/products/index.html.erb +29 -0
- data/test/dummy/app/views/products/new.html.erb +5 -0
- data/test/dummy/app/views/products/show.html.erb +25 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/devise.rb +259 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/user_stamp.rb +26 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/devise.en.yml +60 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +7 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20150418012302_devise_create_users.rb +43 -0
- data/test/dummy/db/migrate/20150418013334_create_products.rb +13 -0
- data/test/dummy/db/migrate/20150420023321_create_materials.rb +13 -0
- data/test/dummy/db/schema.rb +55 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +168 -0
- data/test/dummy/log/test.log +5481 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test/functional/materials_controller_test.rb +98 -0
- data/test/dummy/test/functional/products_controller_test.rb +99 -0
- data/test/dummy/test/unit/helpers/materials_helper_test.rb +30 -0
- data/test/dummy/test/unit/helpers/products_helper_test.rb +30 -0
- data/test/dummy/test/unit/material_test.rb +33 -0
- data/test/dummy/test/unit/product_test.rb +33 -0
- data/test/dummy/test/unit/user_test.rb +33 -0
- data/test/fixtures/materials.yml +51 -0
- data/test/fixtures/products.yml +51 -0
- data/test/fixtures/users.yml +40 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/test_helper.rb +45 -0
- data/test/user_stamp_test.rb +33 -0
- metadata +248 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
@@ -0,0 +1,98 @@
|
|
1
|
+
# This file is part of the UserStamp library that provides tools to
|
2
|
+
# track who created, updated, or destroyed a record in the database.
|
3
|
+
#
|
4
|
+
# https://github.com/mjpete3/user_stamp
|
5
|
+
#
|
6
|
+
# Copyright (C) 2015 PD Technology Solutions, LLC
|
7
|
+
#
|
8
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
9
|
+
# a copy of this software and associated documentation files (the
|
10
|
+
# "Software"), to deal in the Software without restriction, including
|
11
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
12
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
13
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
14
|
+
# the following conditions:
|
15
|
+
#
|
16
|
+
# The above copyright notice and this permission notice shall be
|
17
|
+
# included in all copies or substantial portions of the Software.
|
18
|
+
#
|
19
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
20
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
21
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
22
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
23
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
24
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
25
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
26
|
+
|
27
|
+
require 'test_helper'
|
28
|
+
|
29
|
+
class MaterialsControllerTest < ActionController::TestCase
|
30
|
+
include Devise::TestHelpers
|
31
|
+
|
32
|
+
setup do
|
33
|
+
@admin = users(:one)
|
34
|
+
@material = materials(:one)
|
35
|
+
|
36
|
+
# set the user_field to :id
|
37
|
+
UserStamp.configure do |config|
|
38
|
+
config.user_field = :id
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
test "should get index" do
|
43
|
+
sign_in @admin
|
44
|
+
get :index
|
45
|
+
assert_response :success
|
46
|
+
assert_not_nil assigns(:materials)
|
47
|
+
end
|
48
|
+
|
49
|
+
test "should get new" do
|
50
|
+
sign_in @admin
|
51
|
+
get :new
|
52
|
+
assert_response :success
|
53
|
+
end
|
54
|
+
|
55
|
+
test "should create material" do
|
56
|
+
sign_in @admin
|
57
|
+
assert_difference('Material.count') do
|
58
|
+
post :create, material: { name: @material.name }
|
59
|
+
end
|
60
|
+
|
61
|
+
material = assigns(:material)
|
62
|
+
assert_equal material.created_user, @admin.id
|
63
|
+
assert_redirected_to material_path(assigns(:material))
|
64
|
+
end
|
65
|
+
|
66
|
+
test "should show material" do
|
67
|
+
sign_in @admin
|
68
|
+
get :show, id: @material
|
69
|
+
assert_response :success
|
70
|
+
end
|
71
|
+
|
72
|
+
test "should get edit" do
|
73
|
+
sign_in @admin
|
74
|
+
get :edit, id: @material
|
75
|
+
assert_response :success
|
76
|
+
end
|
77
|
+
|
78
|
+
test "should update material" do
|
79
|
+
sign_in @admin
|
80
|
+
put :update, id: @material, material: { name: @material.name }
|
81
|
+
|
82
|
+
material = assigns(:material)
|
83
|
+
assert_equal material.updated_user, @admin.id
|
84
|
+
|
85
|
+
assert_redirected_to material_path(assigns(:material))
|
86
|
+
end
|
87
|
+
|
88
|
+
test "should destroy material" do
|
89
|
+
sign_in @admin
|
90
|
+
assert_difference('Material.not_deleted.count', -1) do
|
91
|
+
delete :destroy, id: @material
|
92
|
+
end
|
93
|
+
|
94
|
+
material = assigns(:material)
|
95
|
+
assert_equal material.destroy_user, @admin.id
|
96
|
+
assert_redirected_to materials_path
|
97
|
+
end
|
98
|
+
end
|
@@ -0,0 +1,99 @@
|
|
1
|
+
# This file is part of the UserStamp library that provides tools to
|
2
|
+
# track who created, updated, or destroyed a record in the database.
|
3
|
+
#
|
4
|
+
# https://github.com/mjpete3/user_stamp
|
5
|
+
#
|
6
|
+
# Copyright (C) 2015 PD Technology Solutions, LLC
|
7
|
+
#
|
8
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
9
|
+
# a copy of this software and associated documentation files (the
|
10
|
+
# "Software"), to deal in the Software without restriction, including
|
11
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
12
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
13
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
14
|
+
# the following conditions:
|
15
|
+
#
|
16
|
+
# The above copyright notice and this permission notice shall be
|
17
|
+
# included in all copies or substantial portions of the Software.
|
18
|
+
#
|
19
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
20
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
21
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
22
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
23
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
24
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
25
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
26
|
+
|
27
|
+
require 'test_helper'
|
28
|
+
|
29
|
+
class ProductsControllerTest < ActionController::TestCase
|
30
|
+
include Devise::TestHelpers
|
31
|
+
|
32
|
+
setup do
|
33
|
+
@admin = users(:one)
|
34
|
+
@product = products(:one)
|
35
|
+
|
36
|
+
# set the user_field to :id
|
37
|
+
UserStamp.configure do |config|
|
38
|
+
config.user_field = :login_name
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
|
43
|
+
test "should get index" do
|
44
|
+
sign_in @admin
|
45
|
+
get :index
|
46
|
+
assert_response :success
|
47
|
+
assert_not_nil assigns(:products)
|
48
|
+
end
|
49
|
+
|
50
|
+
test "should get new" do
|
51
|
+
sign_in @admin
|
52
|
+
get :new
|
53
|
+
assert_response :success
|
54
|
+
end
|
55
|
+
|
56
|
+
test "should create product" do
|
57
|
+
sign_in @admin
|
58
|
+
assert_difference('Product.count') do
|
59
|
+
post :create, product: { name: @product.name }
|
60
|
+
end
|
61
|
+
|
62
|
+
product = assigns(:product)
|
63
|
+
assert_equal product.created_user, @admin.login_name
|
64
|
+
assert_redirected_to product_path(assigns(:product))
|
65
|
+
end
|
66
|
+
|
67
|
+
test "should show product" do
|
68
|
+
sign_in @admin
|
69
|
+
get :show, id: @product
|
70
|
+
assert_response :success
|
71
|
+
end
|
72
|
+
|
73
|
+
test "should get edit" do
|
74
|
+
sign_in @admin
|
75
|
+
get :edit, id: @product
|
76
|
+
assert_response :success
|
77
|
+
end
|
78
|
+
|
79
|
+
test "should update product" do
|
80
|
+
sign_in @admin
|
81
|
+
put :update, id: @product, product: { name: @product.name }
|
82
|
+
|
83
|
+
product = assigns(:product)
|
84
|
+
assert_equal product.updated_user, @admin.login_name
|
85
|
+
|
86
|
+
assert_redirected_to product_path(assigns(:product))
|
87
|
+
end
|
88
|
+
|
89
|
+
test "should destroy product" do
|
90
|
+
sign_in @admin
|
91
|
+
assert_difference('Product.not_deleted.count', -1) do
|
92
|
+
delete :destroy, id: @product
|
93
|
+
end
|
94
|
+
|
95
|
+
product = assigns(:product)
|
96
|
+
assert_equal product.destroy_user, @admin.login_name
|
97
|
+
assert_redirected_to products_path
|
98
|
+
end
|
99
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# This file is part of the UserStamp library that provides tools to
|
2
|
+
# track who created, updated, or destroyed a record in the database.
|
3
|
+
#
|
4
|
+
# https://github.com/mjpete3/user_stamp
|
5
|
+
#
|
6
|
+
# Copyright (C) 2015 PD Technology Solutions, LLC
|
7
|
+
#
|
8
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
9
|
+
# a copy of this software and associated documentation files (the
|
10
|
+
# "Software"), to deal in the Software without restriction, including
|
11
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
12
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
13
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
14
|
+
# the following conditions:
|
15
|
+
#
|
16
|
+
# The above copyright notice and this permission notice shall be
|
17
|
+
# included in all copies or substantial portions of the Software.
|
18
|
+
#
|
19
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
20
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
21
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
22
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
23
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
24
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
25
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
26
|
+
|
27
|
+
require 'test_helper'
|
28
|
+
|
29
|
+
class MaterialsHelperTest < ActionView::TestCase
|
30
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# This file is part of the UserStamp library that provides tools to
|
2
|
+
# track who created, updated, or destroyed a record in the database.
|
3
|
+
#
|
4
|
+
# https://github.com/mjpete3/user_stamp
|
5
|
+
#
|
6
|
+
# Copyright (C) 2015 PD Technology Solutions, LLC
|
7
|
+
#
|
8
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
9
|
+
# a copy of this software and associated documentation files (the
|
10
|
+
# "Software"), to deal in the Software without restriction, including
|
11
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
12
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
13
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
14
|
+
# the following conditions:
|
15
|
+
#
|
16
|
+
# The above copyright notice and this permission notice shall be
|
17
|
+
# included in all copies or substantial portions of the Software.
|
18
|
+
#
|
19
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
20
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
21
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
22
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
23
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
24
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
25
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
26
|
+
|
27
|
+
require 'test_helper'
|
28
|
+
|
29
|
+
class ProductsHelperTest < ActionView::TestCase
|
30
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# This file is part of the UserStamp library that provides tools to
|
2
|
+
# track who created, updated, or destroyed a record in the database.
|
3
|
+
#
|
4
|
+
# https://github.com/mjpete3/user_stamp
|
5
|
+
#
|
6
|
+
# Copyright (C) 2015 PD Technology Solutions, LLC
|
7
|
+
#
|
8
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
9
|
+
# a copy of this software and associated documentation files (the
|
10
|
+
# "Software"), to deal in the Software without restriction, including
|
11
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
12
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
13
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
14
|
+
# the following conditions:
|
15
|
+
#
|
16
|
+
# The above copyright notice and this permission notice shall be
|
17
|
+
# included in all copies or substantial portions of the Software.
|
18
|
+
#
|
19
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
20
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
21
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
22
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
23
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
24
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
25
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
26
|
+
|
27
|
+
require 'test_helper'
|
28
|
+
|
29
|
+
class MaterialTest < ActiveSupport::TestCase
|
30
|
+
# test "the truth" do
|
31
|
+
# assert true
|
32
|
+
# end
|
33
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# This file is part of the UserStamp library that provides tools to
|
2
|
+
# track who created, updated, or destroyed a record in the database.
|
3
|
+
#
|
4
|
+
# https://github.com/mjpete3/user_stamp
|
5
|
+
#
|
6
|
+
# Copyright (C) 2015 PD Technology Solutions, LLC
|
7
|
+
#
|
8
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
9
|
+
# a copy of this software and associated documentation files (the
|
10
|
+
# "Software"), to deal in the Software without restriction, including
|
11
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
12
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
13
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
14
|
+
# the following conditions:
|
15
|
+
#
|
16
|
+
# The above copyright notice and this permission notice shall be
|
17
|
+
# included in all copies or substantial portions of the Software.
|
18
|
+
#
|
19
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
20
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
21
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
22
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
23
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
24
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
25
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
26
|
+
|
27
|
+
require 'test_helper'
|
28
|
+
|
29
|
+
class ProductTest < ActiveSupport::TestCase
|
30
|
+
# test "the truth" do
|
31
|
+
# assert true
|
32
|
+
# end
|
33
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# This file is part of the UserStamp library that provides tools to
|
2
|
+
# track who created, updated, or destroyed a record in the database.
|
3
|
+
#
|
4
|
+
# https://github.com/mjpete3/user_stamp
|
5
|
+
#
|
6
|
+
# Copyright (C) 2015 PD Technology Solutions, LLC
|
7
|
+
#
|
8
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
9
|
+
# a copy of this software and associated documentation files (the
|
10
|
+
# "Software"), to deal in the Software without restriction, including
|
11
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
12
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
13
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
14
|
+
# the following conditions:
|
15
|
+
#
|
16
|
+
# The above copyright notice and this permission notice shall be
|
17
|
+
# included in all copies or substantial portions of the Software.
|
18
|
+
#
|
19
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
20
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
21
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
22
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
23
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
24
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
25
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
26
|
+
|
27
|
+
require 'test_helper'
|
28
|
+
|
29
|
+
class UserTest < ActiveSupport::TestCase
|
30
|
+
# test "the truth" do
|
31
|
+
# assert true
|
32
|
+
# end
|
33
|
+
end
|