Skip to content

Instantly share code, notes, and snippets.

@renaehodgkins
Created October 29, 2012 19:50
Show Gist options
  • Save renaehodgkins/3976106 to your computer and use it in GitHub Desktop.
Save renaehodgkins/3976106 to your computer and use it in GitHub Desktop.
pixelcandy at Renaes-MacBook-Pro in ~/workspace/12spokes/assessment (assessment-type-required●)
$ rspec spec
You are using Typhoeus 0.2.4. WebMock supports version >= 0.3.2.
Content Service Configured http://content.dev
........FFFFFFF...........................................................................................................................................................................................................................F.....FFFF........F....FFF..............................................................................................................QFont::setPixelSize: Pixel size <= 0 (0)
..*...*..............................................................................
Pending:
AdminSessions as an assessor with upcoming sessions
# Temporarily disabled with xit
# ./spec/requests/admin_sessions_spec.rb:34
AdminSessions as an assessor with past sessions
# Temporarily disabled with xit
# ./spec/requests/admin_sessions_spec.rb:45
Failures:
1) Admin::ObservationTreatmentsController#create attach a treatment to my assessment
Failure/Error: before { post :create, assessment_id: my_assessment.id, observation_id: my_observation.id, treatment_id: 777 }
ActiveRecord::StatementInvalid:
Mysql2::Error: Table 'optimis-assessment-test.observation_treatments' doesn't exist: SHOW FULL FIELDS FROM `observation_treatments`
# ./app/controllers/admin/observation_treatments_controller.rb:20:in `create'
# ./spec/controllers/admin/observation_treatments_controller_spec.rb:28:in `block (4 levels) in <top (required)>'
2) Admin::ObservationTreatmentsController#create attach a treatment to my assessment observation_id
Failure/Error: before { post :create, assessment_id: my_assessment.id, observation_id: my_observation.id, treatment_id: 777 }
ActiveRecord::StatementInvalid:
Mysql2::Error: Table 'optimis-assessment-test.observation_treatments' doesn't exist: SHOW FULL FIELDS FROM `observation_treatments`
# ./app/controllers/admin/observation_treatments_controller.rb:20:in `create'
# ./spec/controllers/admin/observation_treatments_controller_spec.rb:28:in `block (4 levels) in <top (required)>'
3) Admin::ObservationTreatmentsController#create attach a treatment to my assessment treatment_id
Failure/Error: before { post :create, assessment_id: my_assessment.id, observation_id: my_observation.id, treatment_id: 777 }
ActiveRecord::StatementInvalid:
Mysql2::Error: Table 'optimis-assessment-test.observation_treatments' doesn't exist: SHOW FULL FIELDS FROM `observation_treatments`
# ./app/controllers/admin/observation_treatments_controller.rb:20:in `create'
# ./spec/controllers/admin/observation_treatments_controller_spec.rb:28:in `block (4 levels) in <top (required)>'
4) Admin::ObservationTreatmentsController#create attach a treatment to my assessment treatment.name
Failure/Error: before { post :create, assessment_id: my_assessment.id, observation_id: my_observation.id, treatment_id: 777 }
ActiveRecord::StatementInvalid:
Mysql2::Error: Table 'optimis-assessment-test.observation_treatments' doesn't exist: SHOW FULL FIELDS FROM `observation_treatments`
# ./app/controllers/admin/observation_treatments_controller.rb:20:in `create'
# ./spec/controllers/admin/observation_treatments_controller_spec.rb:28:in `block (4 levels) in <top (required)>'
5) Admin::ObservationTreatmentsController#create not attach a treatment to another assessment
Failure/Error: let(:observation_treatment) { ObservationTreatment.first }
ActiveRecord::StatementInvalid:
Mysql2::Error: Table 'optimis-assessment-test.observation_treatments' doesn't exist: SHOW FULL FIELDS FROM `observation_treatments`
# ./spec/controllers/admin/observation_treatments_controller_spec.rb:25:in `block (3 levels) in <top (required)>'
# ./spec/controllers/admin/observation_treatments_controller_spec.rb:40:in `block (4 levels) in <top (required)>'
# ./spec/controllers/admin/observation_treatments_controller_spec.rb:41:in `block (4 levels) in <top (required)>'
6) Admin::ObservationTreatmentsController#destroy remove a treatment from my assessment
Failure/Error: ot = create :observation_treatment, observation_id: my_observation.id, treatment_id: 777
ActiveRecord::StatementInvalid:
Mysql2::Error: Table 'optimis-assessment-test.observation_treatments' doesn't exist: SHOW FULL FIELDS FROM `observation_treatments`
# ./spec/controllers/admin/observation_treatments_controller_spec.rb:48:in `block (4 levels) in <top (required)>'
7) Admin::ObservationTreatmentsController#destroy not remove a treatment from another assessment
Failure/Error: ot = create :observation_treatment, observation_id: other_observation.id, treatment_id: 777
ActiveRecord::StatementInvalid:
Mysql2::Error: Table 'optimis-assessment-test.observation_treatments' doesn't exist: SHOW FULL FIELDS FROM `observation_treatments`
# ./spec/controllers/admin/observation_treatments_controller_spec.rb:58:in `block (4 levels) in <top (required)>'
8) Observation Associations
Failure/Error: it { should have_many :observation_treatments }
ActiveRecord::StatementInvalid:
Mysql2::Error: Table 'optimis-assessment-test.observation_treatments' doesn't exist: SHOW FULL FIELDS FROM `observation_treatments`
# ./spec/models/observation_spec.rb:6:in `block (2 levels) in <top (required)>'
9) Observation treatments objects
Failure/Error: let!(:ot1) { create :observation_treatment, observation_id: observation.id, treatment_id: 1, position: 3 }
ActiveRecord::StatementInvalid:
Mysql2::Error: Table 'optimis-assessment-test.observation_treatments' doesn't exist: SHOW FULL FIELDS FROM `observation_treatments`
# ./spec/models/observation_spec.rb:60:in `block (3 levels) in <top (required)>'
10) Observation treatments objects
Failure/Error: let!(:ot1) { create :observation_treatment, observation_id: observation.id, treatment_id: 1, position: 3 }
ActiveRecord::StatementInvalid:
Mysql2::Error: Table 'optimis-assessment-test.observation_treatments' doesn't exist: SHOW FULL FIELDS FROM `observation_treatments`
# ./spec/models/observation_spec.rb:60:in `block (3 levels) in <top (required)>'
11) Observation treatments ids
Failure/Error: let!(:ot1) { create :observation_treatment, observation_id: observation.id, treatment_id: 1, position: 3 }
ActiveRecord::StatementInvalid:
Mysql2::Error: Table 'optimis-assessment-test.observation_treatments' doesn't exist: SHOW FULL FIELDS FROM `observation_treatments`
# ./spec/models/observation_spec.rb:60:in `block (3 levels) in <top (required)>'
12) Observation treatments ids
Failure/Error: let!(:ot1) { create :observation_treatment, observation_id: observation.id, treatment_id: 1, position: 3 }
ActiveRecord::StatementInvalid:
Mysql2::Error: Table 'optimis-assessment-test.observation_treatments' doesn't exist: SHOW FULL FIELDS FROM `observation_treatments`
# ./spec/models/observation_spec.rb:60:in `block (3 levels) in <top (required)>'
13) Observation#attach_recommended_treatments should set recommended treatments for itself
Failure/Error: observation.attach_recommended_treatments
ActiveRecord::StatementInvalid:
Mysql2::Error: Table 'optimis-assessment-test.observation_treatments' doesn't exist: SHOW FULL FIELDS FROM `observation_treatments`
# ./app/models/observation.rb:74:in `block in attach_recommended_treatments'
# ./app/models/observation.rb:73:in `each'
# ./app/models/observation.rb:73:in `attach_recommended_treatments'
# ./spec/models/observation_spec.rb:139:in `block (3 levels) in <top (required)>'
14) ObservationTreatment
Failure/Error: it { should belong_to :observation }
ActiveRecord::StatementInvalid:
Mysql2::Error: Table 'optimis-assessment-test.observation_treatments' doesn't exist: SHOW FULL FIELDS FROM `observation_treatments`
# ./spec/models/observation_treatment_spec.rb:14:in `block (2 levels) in <top (required)>'
15) ObservationTreatment#treatment
Failure/Error: let(:observation_treatment) { create :observation_treatment, observation_id: observation.id, treatment_id: 777 }
ActiveRecord::StatementInvalid:
Mysql2::Error: Table 'optimis-assessment-test.observation_treatments' doesn't exist: SHOW FULL FIELDS FROM `observation_treatments`
# ./spec/models/observation_treatment_spec.rb:17:in `block (3 levels) in <top (required)>'
# ./spec/models/observation_treatment_spec.rb:19:in `block (3 levels) in <top (required)>'
# ./spec/models/observation_treatment_spec.rb:21:in `block (3 levels) in <top (required)>'
16) ObservationTreatment#treatment name
Failure/Error: let(:observation_treatment) { create :observation_treatment, observation_id: observation.id, treatment_id: 777 }
ActiveRecord::StatementInvalid:
Mysql2::Error: Table 'optimis-assessment-test.observation_treatments' doesn't exist: SHOW FULL FIELDS FROM `observation_treatments`
# ./spec/models/observation_treatment_spec.rb:17:in `block (3 levels) in <top (required)>'
# ./spec/models/observation_treatment_spec.rb:19:in `block (3 levels) in <top (required)>'
# ./spec/models/observation_treatment_spec.rb:22:in `block (3 levels) in <top (required)>'
Finished in 25.55 seconds
455 examples, 16 failures, 2 pending
Failed examples:
rspec ./spec/controllers/admin/observation_treatments_controller_spec.rb:31 # Admin::ObservationTreatmentsController#create attach a treatment to my assessment
rspec ./spec/controllers/admin/observation_treatments_controller_spec.rb:32 # Admin::ObservationTreatmentsController#create attach a treatment to my assessment observation_id
rspec ./spec/controllers/admin/observation_treatments_controller_spec.rb:33 # Admin::ObservationTreatmentsController#create attach a treatment to my assessment treatment_id
rspec ./spec/controllers/admin/observation_treatments_controller_spec.rb:34 # Admin::ObservationTreatmentsController#create attach a treatment to my assessment treatment.name
rspec ./spec/controllers/admin/observation_treatments_controller_spec.rb:41 # Admin::ObservationTreatmentsController#create not attach a treatment to another assessment
rspec ./spec/controllers/admin/observation_treatments_controller_spec.rb:53 # Admin::ObservationTreatmentsController#destroy remove a treatment from my assessment
rspec ./spec/controllers/admin/observation_treatments_controller_spec.rb:63 # Admin::ObservationTreatmentsController#destroy not remove a treatment from another assessment
rspec ./spec/models/observation_spec.rb:6 # Observation Associations
rspec ./spec/models/observation_spec.rb:77 # Observation treatments objects
rspec ./spec/models/observation_spec.rb:78 # Observation treatments objects
rspec ./spec/models/observation_spec.rb:84 # Observation treatments ids
rspec ./spec/models/observation_spec.rb:85 # Observation treatments ids
rspec ./spec/models/observation_spec.rb:142 # Observation#attach_recommended_treatments should set recommended treatments for itself
rspec ./spec/models/observation_treatment_spec.rb:14 # ObservationTreatment
rspec ./spec/models/observation_treatment_spec.rb:21 # ObservationTreatment#treatment
rspec ./spec/models/observation_treatment_spec.rb:22 # ObservationTreatment#treatment name
pixelcandy at Renaes-MacBook-Pro in ~/workspace/12spokes/assessment (assessment-type-required●)
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment