Displaying 4 results from an estimated 4 matches for "view_example_group".
2007 Dec 07
4
strange error on mock proxy
...rb:
51:in `render''
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/benchmark.rb:293:in `measure''
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
51:in `render''
vendor/plugins/rspec_on_rails/lib/spec/rails/example/
view_example_group.rb:129:in `send''
vendor/plugins/rspec_on_rails/lib/spec/rails/example/
view_example_group.rb:129:in `render''
spec/views/units/new.html.erb_spec.rb:11
vendor/plugins/rspec/lib/spec/example/example_methods.rb:42:in
`instance_eval''
vendor/plugins/rspec...
2008 Jun 03
9
Build rspec-rails as a gem?
I can''t figure out how to build rspec-rails as a gem when just cloned
from github... there isn''t any .gemspec file or rake task that does
this. Any help?
--
Posted via http://www.ruby-forum.com/.
2008 Aug 19
5
RSpec raising routing errors where Rails doesn''t?
Hopefully someone here can help me figure out why the ERB:
<% form_for(@fund, :url => {:host => PRIVATE_HOST}, :html => {:class
=> ''fund'', :multipart => true}) do |f| %>
raises an error in my specs:
No route matches {:action=>"index"}
but works fine in my app and generates the following, desired HTML:
<form
2010 Aug 18
2
RSpec 2/Rails 3 - content_for in view specs
...s/actionpack-3.0.0.rc/lib/action_view/render/rendering.rb:25:in
`render''
#
/home/dylan/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0.rc/lib/action_view/test_case.rb:103:in
`render''
#
/home/dylan/.rvm/gems/ruby-1.9.2-p0/gems/rspec-rails-2.0.0.beta.19/lib/rspec/rails/example/view_example_group.rb:73:in
`render''
# ./spec/views/contacts/show.html.erb_spec.rb:20:in `block (2 levels) in
<main>''
I''ve also tried using response.capture(:sidebar), response[:sidebar],
rendered.capture(:sidebar), rendered[:sidebar], view.capture(:sidebar), etc.
and none of the...