Code Monkey home page Code Monkey logo

audit_score_entry's People

Contributors

achaudhary123 avatar puneetgupta avatar vishal-enbake avatar

Watchers

 avatar  avatar

audit_score_entry's Issues

Rspec tests fail

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:

  1. 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

    ./spec/controllers/estimator_claim_audit_list_controller_spec.rb:39:in `block (3 levels) in <top (required)>'

  2. 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

    ./app/controllers/claim_audit_entries_controller.rb:49:in`block in create'

    ./app/controllers/claim_audit_entries_controller.rb:47:in `create'

    ./spec/controllers/claim_audit_entries_controller_spec.rb:75:in`block (3 levels) in <top (required)>'

  3. 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"

    ./spec/features/edit_claim_audit_entry_spec.rb:25:in `block (2 levels) in <top (required)>'

  4. 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"

    ./spec/features/estimator_claim_audit_filter_spec.rb:25:in `block (2 levels) in <top (required)>'

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

Still seeing a diff with schema.rb when db:migrate from fresh database

@@ -78,7 +78,7 @@ ActiveRecord::Schema.define(version: 20131212152524) do
t.string "category"
t.text "area"
t.string "answer"

  • t.decimal "exception"
  • t.decimal "exception", precision: 10, scale: 0
    t.text "note"
    t.string "indicator"
    t.integer "amount"
    @@ -127,11 +127,11 @@ ActiveRecord::Schema.define(version: 20131212152524) do
    t.string "category"
    t.text "question"
    t.string "response"
  • t.decimal "min_exception"
  • t.decimal "max_exception"
  • t.decimal "min_exception", precision: 10, scale: 0
  • t.decimal "max_exception", precision: 10, scale: 0
    t.datetime "created_at"
    t.datetime "updated_at"
  • t.integer "min_amount", default: 0
  • t.integer "min_amount", default: 0
    end

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"

  • t.decimal "severity"
  • t.decimal "duration_net"
  • t.decimal "severity", precision: 10, scale: 0
  • t.decimal "duration_net", precision: 10, scale: 0
    t.date "estimate_date"
    t.boolean "active"
    t.integer "created_employee_id"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.