ishwinder / audit_score_entry Goto Github PK
View Code? Open in Web Editor NEWAudit Score Entry UI
Audit Score Entry UI
I pulled down the latest code, dropped and recreated my database, rake db:migrate, then run rspec and the following tests fail. NOTE: I did use mysql locally rather than pg as in the Gemfile.
Failures:
EstimatorClaimAuditListController Get 'show_saved_audit_estimate' returns http success
Failure/Error: get 'show_saved_audit_estimate', {"c_num"=>"123456708"}
AbstractController::ActionNotFound:
The action 'show_saved_audit_estimate' could not be found for EstimatorClaimAuditListController
ClaimAuditEntriesController Post 'create' redirect to root path
Failure/Error: get 'create',{"claim_audit_entry"=>{"estimator"=>"1", "claim"=>"123456790", "claim_awaiting_audit_id"=>"25", "carrier_branch_id"=>"4", "estimate_date"=>"10-19-2013", "review"=>"", "severity"=>"1022.52", "admin_score"=>"8", "compliance_score"=>"44", "estimating_score"=>"12.13", "leakage_amount"=>"124", "overall_score"=>"64.13"}, "adm_que"=>"{"1":{"question":"Professionally Written","answer":"No","exception":"3","notes":"test note"},"2":{"question":"Vehicle Admin Complete","answer":"No","exception":"3","notes":"test note"},"3":{"question":"Estimate Admin Complete","answer":"No","exception":"2","notes":"test note"}}", "com_que"=>"{"4":{"question":"Parts Guidelines","answer":"No","exception":"16","notes":"test note"},"5":{"question":"State Guidelines","answer":"No","exception":"13","notes":"test note"},"6":{"question":"Carrer Guidelines","answer":"No","exception":"15","notes":"test note"}}", "est_que"=>"{"7":{"ext_question":"Tax Rate Correct","ext_answer":"No","impact":"Over","amount":"23","ext_notes":"test note"},"8":{"ext_question":"Correct Tax Structure","ext_answer":"No","impact":"Over","amount":"1","ext_notes":"test note"},"9":{"ext_question":"Labour Rate Supported","ext_answer":"No","impact":"Over","amount":"12","ext_notes":"test note"},"10":{"ext_question":"Repair Decision Accurate","ext_answer":"No","impact":"Over","amount":"32","ext_notes":"test note"},"11":{"ext_question":"Labour Hours Accurate","ext_answer":"No","impact":"Over","amount":"23","ext_notes":"test note"},"12":{"ext_question":"APU Accurate","ext_answer":"No","impact":"Over","amount":"33","ext_notes":"test note"}}", "comment_added"=>"", "commit"=>"Confirm"}
NoMethodError:
undefined method `update_attribute' for nil:NilClass
welcome should render edit claim audit entry
Failure/Error: find(".to_click_in_test").click
Capybara::ElementNotFound:
Unable to find css ".to_click_in_test"
welcome should render estimator claim filter
Failure/Error: page.should have_content "Claim Audit Entry"
expected to find text "Claim Audit Entry" in "Internal Server Error invalid date WEBrick/1.3.1 (Ruby/2.0.0/2013-11-22) at 127.0.0.1:52522"
Finished in 21.88 seconds
44 examples, 4 failures, 1 pending
Failed examples:
rspec ./spec/controllers/estimator_claim_audit_list_controller_spec.rb:38 # EstimatorClaimAuditListController Get 'show_saved_audit_estimate' returns http success
rspec ./spec/controllers/claim_audit_entries_controller_spec.rb:74 # ClaimAuditEntriesController Post 'create' redirect to root path
rspec ./spec/features/edit_claim_audit_entry_spec.rb:20 # welcome should render edit claim audit entry
rspec ./spec/features/estimator_claim_audit_filter_spec.rb:20 # welcome should render estimator claim filter
@@ -78,7 +78,7 @@ ActiveRecord::Schema.define(version: 20131212152524) do
t.string "category"
t.text "area"
t.string "answer"
create_table "claim_awaiting_audit", force: true do |t|
@@ -310,8 +310,8 @@ ActiveRecord::Schema.define(version: 20131212152524) do
t.string "claim_number"
t.string "claim_type"
t.integer "carrier_branch_id"
For example, password is not at least 8 chars, no message is displayed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.