Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest May 16th, 2018 102 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. 1)
  2. ActionView::TemplateError in '/medical_providers/show.rhtml 'Add to My Providers' link should display link with protected class'
  3. #<Mock:medical provider>.comments() - expected calls: 0, actual calls: 1
  4. On line #29 of app/views/medical_providers/show.rhtml
  5.  
  6.     26:     <div class="profile_general">
  7.     27:         <ul>
  8.     28:             <li><%= image_tag '/newimages/provider_profile_icon.png' %></li>
  9.     29:             <li><div class="comment_badge"><a href="#comments"><%= @medical_provider.comments.count %></a><br /><small><a href="#comments">Comments</a></small></div></li>
  10.     30:             <li>
  11.     31:             <div class="rating_badge">
  12.     32:             <% if logged_in? %>
  13.  
  14.     /home/matt/trunk/app/views//medical_providers/show.rhtml:29:in `_run_rhtml_47app47views47medical_providers47show46rhtml'
  15.     /home/matt/trunk/vendor/rails/actionpack/lib/action_view/base.rb:325:in `send'
  16.     /home/matt/trunk/vendor/rails/actionpack/lib/action_view/base.rb:325:in `compile_and_render_template'
  17.     /home/matt/trunk/vendor/rails/actionpack/lib/action_view/base.rb:301:in `render_template'
  18.     /home/matt/trunk/vendor/rails/actionpack/lib/action_view/base.rb:260:in `render_file'
  19.     /home/matt/trunk/vendor/rails/actionpack/lib/action_controller/base.rb:812:in `render_file'
  20.     /home/matt/trunk/vendor/rails/actionpack/lib/action_controller/base.rb:747:in `render_with_no_layout'
  21.     /home/matt/trunk/vendor/rails/actionpack/lib/action_controller/layout.rb:256:in `render_without_benchmark'
  22.     /home/matt/trunk/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render'
  23.     /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
  24.     /home/matt/trunk/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render'
  25.     /home/matt/trunk/vendor/plugins/rspec_on_rails/lib/spec/rails/example/view_example_group.rb:128:in `send'
  26.     /home/matt/trunk/vendor/plugins/rspec_on_rails/lib/spec/rails/example/view_example_group.rb:128:in `render'
  27.     spec/views/medical_providers/show.rhtml_spec.rb:8:in `render_show'
  28.     spec/views/medical_providers/show.rhtml_spec.rb:54
  29.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_methods.rb:78:in `instance_eval'
  30.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_methods.rb:78:in `run_with_description_capturing'
  31.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_methods.rb:19:in `execute'
  32.     /usr/lib/ruby/1.8/timeout.rb:48:in `timeout'
  33.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_methods.rb:16:in `execute'
  34.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:292:in `execute_examples'
  35.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:291:in `each'
  36.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:291:in `execute_examples'
  37.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:121:in `run'
  38.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:22:in `run'
  39.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:21:in `each'
  40.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:21:in `run'
  41.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/runner/options.rb:90:in `run_examples'
  42.     /home/matt/trunk/vendor/plugins/rspec/lib/spec.rb:20:in `run'
  43.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/runner.rb:192:in `register_at_exit_hook'
  44.     spec/views/medical_providers/show.rhtml_spec.rb:4
  45.  
  46. 2)
  47. ActionView::TemplateError in '/medical_providers/show.rhtml 'Add to My Providers' link when logged in and provider is not in user's list should display link'
  48. #<Mock:medical provider>.comments() - expected calls: 0, actual calls: 1
  49. On line #29 of app/views/medical_providers/show.rhtml
  50.  
  51.     26:     <div class="profile_general">
  52.     27:         <ul>
  53.     28:             <li><%= image_tag '/newimages/provider_profile_icon.png' %></li>
  54.     29:             <li><div class="comment_badge"><a href="#comments"><%= @medical_provider.comments.count %></a><br /><small><a href="#comments">Comments</a></small></div></li>
  55.     30:             <li>
  56.     31:             <div class="rating_badge">
  57.     32:             <% if logged_in? %>
  58.  
  59.     /home/matt/trunk/app/views//medical_providers/show.rhtml:29:in `_run_rhtml_47app47views47medical_providers47show46rhtml'
  60.     /home/matt/trunk/vendor/rails/actionpack/lib/action_view/base.rb:325:in `send'
  61.     /home/matt/trunk/vendor/rails/actionpack/lib/action_view/base.rb:325:in `compile_and_render_template'
  62.     /home/matt/trunk/vendor/rails/actionpack/lib/action_view/base.rb:301:in `render_template'
  63.     /home/matt/trunk/vendor/rails/actionpack/lib/action_view/base.rb:260:in `render_file'
  64.     /home/matt/trunk/vendor/rails/actionpack/lib/action_controller/base.rb:812:in `render_file'
  65.     /home/matt/trunk/vendor/rails/actionpack/lib/action_controller/base.rb:747:in `render_with_no_layout'
  66.     /home/matt/trunk/vendor/rails/actionpack/lib/action_controller/layout.rb:256:in `render_without_benchmark'
  67.     /home/matt/trunk/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render'
  68.     /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
  69.     /home/matt/trunk/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render'
  70.     /home/matt/trunk/vendor/plugins/rspec_on_rails/lib/spec/rails/example/view_example_group.rb:128:in `send'
  71.     /home/matt/trunk/vendor/plugins/rspec_on_rails/lib/spec/rails/example/view_example_group.rb:128:in `render'
  72.     spec/views/medical_providers/show.rhtml_spec.rb:8:in `render_show'
  73.     spec/views/medical_providers/show.rhtml_spec.rb:70
  74.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_methods.rb:78:in `instance_eval'
  75.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_methods.rb:78:in `run_with_description_capturing'
  76.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_methods.rb:19:in `execute'
  77.     /usr/lib/ruby/1.8/timeout.rb:48:in `timeout'
  78.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_methods.rb:16:in `execute'
  79.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:292:in `execute_examples'
  80.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:291:in `each'
  81.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:291:in `execute_examples'
  82.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:121:in `run'
  83.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:22:in `run'
  84.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:21:in `each'
  85.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:21:in `run'
  86.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/runner/options.rb:90:in `run_examples'
  87.     /home/matt/trunk/vendor/plugins/rspec/lib/spec.rb:20:in `run'
  88.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/runner.rb:192:in `register_at_exit_hook'
  89.     spec/views/medical_providers/show.rhtml_spec.rb:4
  90.  
  91. 3)
  92. ActionView::TemplateError in '/medical_providers/show.rhtml 'Add to My Providers' link when logged in and provider is in user's list should not display link'
  93. #<Mock:medical provider>.comments() - expected calls: 0, actual calls: 1
  94. On line #29 of app/views/medical_providers/show.rhtml
  95.  
  96.     26:     <div class="profile_general">
  97.     27:         <ul>
  98.     28:             <li><%= image_tag '/newimages/provider_profile_icon.png' %></li>
  99.     29:             <li><div class="comment_badge"><a href="#comments"><%= @medical_provider.comments.count %></a><br /><small><a href="#comments">Comments</a></small></div></li>
  100.     30:             <li>
  101.     31:             <div class="rating_badge">
  102.     32:             <% if logged_in? %>
  103.  
  104.     /home/matt/trunk/app/views//medical_providers/show.rhtml:29:in `_run_rhtml_47app47views47medical_providers47show46rhtml'
  105.     /home/matt/trunk/vendor/rails/actionpack/lib/action_view/base.rb:325:in `send'
  106.     /home/matt/trunk/vendor/rails/actionpack/lib/action_view/base.rb:325:in `compile_and_render_template'
  107.     /home/matt/trunk/vendor/rails/actionpack/lib/action_view/base.rb:301:in `render_template'
  108.     /home/matt/trunk/vendor/rails/actionpack/lib/action_view/base.rb:260:in `render_file'
  109.     /home/matt/trunk/vendor/rails/actionpack/lib/action_controller/base.rb:812:in `render_file'
  110.     /home/matt/trunk/vendor/rails/actionpack/lib/action_controller/base.rb:747:in `render_with_no_layout'
  111.     /home/matt/trunk/vendor/rails/actionpack/lib/action_controller/layout.rb:256:in `render_without_benchmark'
  112.     /home/matt/trunk/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render'
  113.     /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
  114.     /home/matt/trunk/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render'
  115.     /home/matt/trunk/vendor/plugins/rspec_on_rails/lib/spec/rails/example/view_example_group.rb:128:in `send'
  116.     /home/matt/trunk/vendor/plugins/rspec_on_rails/lib/spec/rails/example/view_example_group.rb:128:in `render'
  117.     spec/views/medical_providers/show.rhtml_spec.rb:8:in `render_show'
  118.     spec/views/medical_providers/show.rhtml_spec.rb:78
  119.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_methods.rb:78:in `instance_eval'
  120.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_methods.rb:78:in `run_with_description_capturing'
  121.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_methods.rb:19:in `execute'
  122.     /usr/lib/ruby/1.8/timeout.rb:48:in `timeout'
  123.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_methods.rb:16:in `execute'
  124.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:292:in `execute_examples'
  125.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:291:in `each'
  126.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:291:in `execute_examples'
  127.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:121:in `run'
  128.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:22:in `run'
  129.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:21:in `each'
  130.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:21:in `run'
  131.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/runner/options.rb:90:in `run_examples'
  132.     /home/matt/trunk/vendor/plugins/rspec/lib/spec.rb:20:in `run'
  133.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/runner.rb:192:in `register_at_exit_hook'
  134.     spec/views/medical_providers/show.rhtml_spec.rb:4
  135.  
  136. 4)
  137. ActionView::TemplateError in '/medical_providers/show.rhtml Comments link should display comments count'
  138. You have a nil object when you didn't expect it!
  139. The error occurred while evaluating nil.name
  140. On line #15 of app/views/medical_providers/show.rhtml
  141.  
  142.     12:
  143.     13: <h1 class="profile">
  144.     14:     <div class="left">
  145.     15:         <%= @medical_provider.name %>
  146.     16:     </div>
  147.     17:     <% unless logged_in? && current_user.my_provider?(@medical_provider)%>
  148.     18:     <div id="add_to_my_background">
  149.  
  150.     /home/matt/trunk/app/views//medical_providers/show.rhtml:15:in `_run_rhtml_47app47views47medical_providers47show46rhtml'
  151.     /home/matt/trunk/vendor/rails/actionpack/lib/action_view/base.rb:325:in `send'
  152.     /home/matt/trunk/vendor/rails/actionpack/lib/action_view/base.rb:325:in `compile_and_render_template'
  153.     /home/matt/trunk/vendor/rails/actionpack/lib/action_view/base.rb:301:in `render_template'
  154.     /home/matt/trunk/vendor/rails/actionpack/lib/action_view/base.rb:260:in `render_file'
  155.     /home/matt/trunk/vendor/rails/actionpack/lib/action_controller/base.rb:812:in `render_file'
  156.     /home/matt/trunk/vendor/rails/actionpack/lib/action_controller/base.rb:747:in `render_with_no_layout'
  157.     /home/matt/trunk/vendor/rails/actionpack/lib/action_controller/layout.rb:256:in `render_without_benchmark'
  158.     /home/matt/trunk/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render'
  159.     /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
  160.     /home/matt/trunk/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render'
  161.     /home/matt/trunk/vendor/plugins/rspec_on_rails/lib/spec/rails/example/view_example_group.rb:128:in `send'
  162.     /home/matt/trunk/vendor/plugins/rspec_on_rails/lib/spec/rails/example/view_example_group.rb:128:in `render'
  163.     spec/views/medical_providers/show.rhtml_spec.rb:8:in `render_show'
  164.     spec/views/medical_providers/show.rhtml_spec.rb:91
  165.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_methods.rb:78:in `instance_eval'
  166.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_methods.rb:78:in `run_with_description_capturing'
  167.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_methods.rb:19:in `execute'
  168.     /usr/lib/ruby/1.8/timeout.rb:48:in `timeout'
  169.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_methods.rb:16:in `execute'
  170.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:292:in `execute_examples'
  171.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:291:in `each'
  172.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:291:in `execute_examples'
  173.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:121:in `run'
  174.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:22:in `run'
  175.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:21:in `each'
  176.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:21:in `run'
  177.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/runner/options.rb:90:in `run_examples'
  178.     /home/matt/trunk/vendor/plugins/rspec/lib/spec.rb:20:in `run'
  179.     /home/matt/trunk/vendor/plugins/rspec/lib/spec/runner.rb:192:in `register_at_exit_hook'
  180.     spec/views/medical_providers/show.rhtml_spec.rb:4
  181.  
  182. Finished in 0.243287 seconds
  183.  
  184. 6 examples, 4 failures, 2 pending
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top