Skip to content

Instantly share code, notes, and snippets.

@ShekharReddy4
Created June 1, 2018 05:49
Show Gist options
  • Save ShekharReddy4/f29507475c2f0088136e2eb3adcd2641 to your computer and use it in GitHub Desktop.
Save ShekharReddy4/f29507475c2f0088136e2eb3adcd2641 to your computer and use it in GitHub Desktop.
22:32:53 Failures:
22:32:53
22:32:53 1) AvenuexCrmContactController crm pages render logged in render sites redirecting from list of sites to particular site
22:32:53 Failure/Error: expect(parsed_body['results']).to include("<a href='#{link}" << "\'>")
22:32:53
22:32:53 expected "<li>\n<div class='account_list_col_1'>\n<a href='/kbasecrm/crm/site/2'>\n<img src='/img/crm/site_placeholder_thumbnail.png'>\n</a>\n</div>\n<div class='account_list_col_2'>\n<h3>\n<a href='/kbasecrm/crm/site/2'>Dummy Site2</a>\n</h3>\n<p>\nRoad 1, XY...='view_map_text'>\nView Map\n</div>\n</a>\n</div>\n<div class='account_list_col_3'>\n<div class='crm_contact_details'>\n<table width='100%'>\n<tr>\n<td class='heading'>\nType:\n</td>\n<td colspan='3'></td>\n</tr>\n</table>\n</div>\n</div>\n</li>\n\n" to include "<a href='/mobile_sales/crm/site/2'>"
22:32:53 Diff:
22:32:53 @@ -1,2 +1,38 @@
22:32:53 -<a href='/mobile_sales/crm/site/2'>
22:32:53 +<li>
22:32:53 +<div class='account_list_col_1'>
22:32:53 +<a href='/kbasecrm/crm/site/2'>
22:32:53 +<img src='/img/crm/site_placeholder_thumbnail.png'>
22:32:53 +</a>
22:32:53 +</div>
22:32:53 +<div class='account_list_col_2'>
22:32:53 +<h3>
22:32:53 +<a href='/kbasecrm/crm/site/2'>Dummy Site2</a>
22:32:53 +</h3>
22:32:53 +<p>
22:32:53 +Road 1, XYZ
22:32:53 +</p>
22:32:53 +<a class='contact_phone' href='tel: 00000000'>
22:32:53 +<i class='fa fa-2x fa-fw fa-phone'></i>
22:32:53 +<div class='contact_phone_text'> 00000000 </div>
22:32:53 +</a>
22:32:53 +<a class='view_map' href='http://maps.google.com/maps?q=Road+1%2C+XYZ&amp;center=-37.855927,145.166887&amp;zoom=12' target='_blank'>
22:32:53 +<i class='fa fa-2x fa-fw fa-map-marker'></i>
22:32:53 +<div class='view_map_text'>
22:32:53 +View Map
22:32:53 +</div>
22:32:53 +</a>
22:32:53 +</div>
22:32:53 +<div class='account_list_col_3'>
22:32:53 +<div class='crm_contact_details'>
22:32:53 +<table width='100%'>
22:32:53 +<tr>
22:32:53 +<td class='heading'>
22:32:53 +Type:
22:32:53 +</td>
22:32:53 +<td colspan='3'></td>
22:32:53 +</tr>
22:32:53 +</table>
22:32:53 +</div>
22:32:53 +</div>
22:32:53 +</li>
22:32:53 # /usr/local/bundle/gems/rspec-support-3.7.1/lib/rspec/support.rb:97:in `Support'
22:32:53 # org/jruby/RubyProc.java:281:in `call'
22:32:53 # /usr/local/bundle/gems/rspec-support-3.7.1/lib/rspec/support.rb:106:in `notify_failure'
22:32:53 # /usr/local/bundle/gems/rspec-expectations-3.7.0/lib/rspec/expectations/fail_with.rb:35:in `fail_with'
22:32:53 # /usr/local/bundle/gems/rspec-expectations-3.7.0/lib/rspec/expectations/handler.rb:38:in `handle_failure'
22:32:53 # /usr/local/bundle/gems/rspec-expectations-3.7.0/lib/rspec/expectations/handler.rb:50:in `handle_matcher'
22:32:53 # /usr/local/bundle/gems/rspec-expectations-3.7.0/lib/rspec/expectations/handler.rb:27:in `with_matcher'
22:32:53 # /usr/local/bundle/gems/rspec-expectations-3.7.0/lib/rspec/expectations/handler.rb:48:in `handle_matcher'
22:32:53 # /usr/local/bundle/gems/rspec-expectations-3.7.0/lib/rspec/expectations/expectation_target.rb:65:in `to'
22:32:53 # ./vendor/components/xsg_avenuex/spec/controllers/avenuex_crm_contact_controller_spec.rb:63:in `(root)'
22:32:53 # org/jruby/RubyBasicObject.java:1623:in `instance_exec'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:254:in `run'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:457:in `with_around_example_hooks'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:466:in `run'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:606:in `run_around_example_hooks_for'
22:32:53 # org/jruby/RubyProc.java:281:in `call'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:342:in `call'
22:32:53 # /usr/local/bundle/gems/rspec-rails-3.7.2/lib/rspec/rails/example/controller_example_group.rb:191:in `ControllerExampleGroup'
22:32:53 # org/jruby/RubyBasicObject.java:1623:in `instance_exec'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:447:in `instance_exec'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:375:in `execute_with'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:608:in `run_around_example_hooks_for'
22:32:53 # org/jruby/RubyProc.java:281:in `call'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:342:in `call'
22:32:53 # /usr/local/bundle/gems/rspec-rails-3.7.2/lib/rspec/rails/adapters.rb:127:in `MinitestLifecycleAdapter'
22:32:53 # org/jruby/RubyBasicObject.java:1623:in `instance_exec'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:447:in `instance_exec'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:375:in `execute_with'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:608:in `run_around_example_hooks_for'
22:32:53 # org/jruby/RubyProc.java:281:in `call'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:342:in `call'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:607:in `run_around_example_hooks_for'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:466:in `run'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:457:in `with_around_example_hooks'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:251:in `run'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:628:in `run_examples'
22:32:53 # org/jruby/RubyArray.java:2414:in `map'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:624:in `run_examples'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:590:in `run'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591:in `run'
22:32:53 # org/jruby/RubyArray.java:2414:in `map'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591:in `run'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591:in `run'
22:32:53 # org/jruby/RubyArray.java:2414:in `map'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591:in `run'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591:in `run'
22:32:53 # org/jruby/RubyArray.java:2414:in `map'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591:in `run'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:118:in `run_specs'
22:32:53 # org/jruby/RubyArray.java:2414:in `map'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:118:in `run_specs'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/configuration.rb:1926:in `with_suite_hooks'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:113:in `run_specs'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/reporter.rb:79:in `report'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:112:in `run_specs'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:87:in `run'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:71:in `run'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:45:in `invoke'
22:32:53 # /usr/local/bundle/gems/rspec-core-3.7.1/exe/rspec:4:in `(root)'
22:32:53 # org/jruby/RubyKernel.java:1059:in `load'
22:32:53 # bin/rspec:20:in `(root)'
22:32:53
22:32:53 Finished in 26.25 seconds (files took 17.77 seconds to load)
22:32:53 28 examples, 1 failure
22:32:53
22:32:53 Failed examples:
22:32:53
22:32:53 rspec ./vendor/components/xsg_avenuex/spec/controllers/avenuex_crm_contact_controller_spec.rb:58 # AvenuexCrmContactController crm pages render logged in render sites redirecting from list of sites to particular site
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment