validation_issues 0.0.5 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/generators/valid_issues/templates/migration.rb +1 -0
- data/lib/validation_issues/acts_as_validation_issues.rb +1 -0
- data/lib/validation_issues/version.rb +1 -1
- data/test/dummy/app/models/user.rb +3 -3
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +98 -0
- data/test/dummy/log/test.log +1028 -0
- data/test/dummy/test/unit/user_test.rb +11 -0
- data/test/factories/users.rb +7 -0
- metadata +4 -2
@@ -4,4 +4,15 @@ class UserTest < ActiveSupport::TestCase
|
|
4
4
|
# test "the truth" do
|
5
5
|
# assert true
|
6
6
|
# end
|
7
|
+
test 'log_successful_validation! should work with no data' do
|
8
|
+
user = FactoryGirl.build(:user, :first_name => 'Fred',
|
9
|
+
:last_name => 'flint'#,
|
10
|
+
#:nick_name => 'Fl'
|
11
|
+
)
|
12
|
+
user.save
|
13
|
+
puts user.errors.full_messages
|
14
|
+
user.log_successful_validation!('test')
|
15
|
+
vi = ValidationIssue.find_by_form_name_and_issue_type('test', 'User')
|
16
|
+
assert_equal 1, vi.success_count
|
17
|
+
end
|
7
18
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: validation_issues
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0
|
5
|
+
version: 0.1.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- David Henner
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-08-09 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -111,6 +111,7 @@ files:
|
|
111
111
|
- test/dummy/script/rails
|
112
112
|
- test/dummy/test/fixtures/users.yml
|
113
113
|
- test/dummy/test/unit/user_test.rb
|
114
|
+
- test/factories/users.rb
|
114
115
|
- test/factories/validation_issues.rb
|
115
116
|
- test/functional/validation_issues_controller_test.rb
|
116
117
|
- test/integration/navigation_test.rb
|
@@ -184,6 +185,7 @@ test_files:
|
|
184
185
|
- test/dummy/script/rails
|
185
186
|
- test/dummy/test/fixtures/users.yml
|
186
187
|
- test/dummy/test/unit/user_test.rb
|
188
|
+
- test/factories/users.rb
|
187
189
|
- test/factories/validation_issues.rb
|
188
190
|
- test/functional/validation_issues_controller_test.rb
|
189
191
|
- test/integration/navigation_test.rb
|