search for: view_spec_spec

Displaying 4 results from an estimated 4 matches for "view_spec_spec".

2007 Aug 02
2
Do the :attributes and :content matchers work
...other_bug => ''there''} ) end I am calling render :partial => ''/bug/div'' in the before :each block. As I said I would expect this to fail but it does not. I am trying this because in the <my_app>/vendor/plugins/rspec_on_rails/spec/rails/dsl/view_spec_spec.rb file there is an example describe "A view that includes a partial using :collection and :spacer_template", :behaviour_type => :view do before(:each) do render "view_spec/partial_collection_including_template" end it "should render the partial...
2006 Nov 28
8
view specs with partials
When I first learned about the View specs I was very excited. I still am. However, I haven''t found them useful yet for one reason. They throw the following exception when ever a view renders another view, which is very common. ActionView::TemplateError in ''Event View message'' No rhtml, rxml, rjs or delegate template found for spec/rails/ view_spec/_info
2006 Nov 30
4
response is null when using should_render_rjs
I''m trying to use rspec to test a controller that has ajax. I have the following action: def change_ad_type_form render :update do |page| page.replace_html ''ad_sub_form'', :partial => ''text'' end end and the following spec: specify "should return Text subform on AJAX request to change_ad_type_form" do
2007 Jul 26
5
Coding standards and whitespace
...rb rspec_on_rails/spec/rails/dsl/controller_isolation_spec.rb rspec_on_rails/spec/rails/dsl/controller_spec_spec.rb rspec_on_rails/spec/rails/dsl/helper_spec_spec.rb rspec_on_rails/spec/rails/dsl/ivar_proxy_spec.rb rspec_on_rails/spec/rails/dsl/shared_behaviour_spec.rb rspec_on_rails/spec/rails/dsl/view_spec_spec.rb rspec_on_rails/spec/rails/extensions/action_view_base_spec.rb rspec_on_rails/spec/rails/extensions/active_record_spec.rb rspec_on_rails/spec/rails/matchers/assert_select_spec.rb rspec_on_rails/spec/rails/matchers/description_generation_spec.rb rspec_on_rails/spec/rails/matchers/redirect_to_spec....