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.
@@ -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
@@ -0,0 +1,7 @@
1
+ FactoryGirl.define do
2
+ factory :user do
3
+ first_name "John"
4
+ last_name "Brown"
5
+ nick_name 'J'
6
+ end
7
+ 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
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-07-25 00:00:00 Z
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