search for: view_spec

Displaying 7 results from an estimated 7 matches for "view_spec".

2008 Mar 16
0
Corrupt rspec_on_rails tar file?
I just downloaded rspec_on_rails-1.1.3.tgz onto a mac on OSX 10.4 and another computer (Ubuntu 7.10) and I get the same tar errors when I try to decompress: rspec_on_rails-1.1.3/spec_resources/views/view_spec/implicit_helper.rhtml rspec_on_rails-1.1.3/spec_resources/views/view_spec/multiple_helpers.rhtml gzip: stdin: decompression OK, trailing garbage ignored rspec_on_rails-1.1.3/spec_resources/views/view_spec/template_with_partial.rhtml rspec_on_rails-1.1.3/spec_resources/views/view_spec/template_with...
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 par...
2007 Jan 16
2
Links in view specs
...9;gap/index'' end specify "should have a link to the get_quote page" do response.should_have_tag ''a'', :attributes => { :href => /\/gap \/get_quote/ } end end But is fails because it actually links like this: <a href="/view_spec/get_quote"> not <a href="/gap/get_quote"> What''s the cleanest way to test links without integrating it into the controller? For now I''m doing... response.should_have_tag ''a'', :attributes => { :href => /\/ get_quote$/ }...
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
2006 Nov 28
8
view specs with partials
...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 I''d really like to be able to write view spec but this is holding me up. Has anyone else bumped into this wall? Is there something I''m missing? Micah -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-...
2007 Apr 04
11
ANN: RSpec 0.9.0 beta-1 available for download.
We''d like to get some feedback on RSpec 0.9 before we start pushing out releases via Rubyforge''s gem server and update the website. We have therefore made the first beta of 0.9 available - both prepackaged and tagged in subversion (see below). RSpec 0.9 introduces a new API for expectations, which essentially means that your underscores go away (there has been other discussions
2007 Jul 26
5
Coding standards and whitespace
...rails_app/spec/controllers/naughty_controller_spec.rb example_rails_app/spec/controllers/people_controller_spec.rb example_rails_app/spec/fixtures/animals.yml example_rails_app/spec/helpers/people_helper_spec.rb example_rails_app/spec/models/person_spec.rb example_rails_app/spec/views/person/create_view_spec.rb example_rails_app/spec/views/person/show_view_spec.rb example_rails_app/spec/watir/person_spec.rb example_rails_app/TODO pre_commit/lib/pre_commit/core.rb pre_commit/lib/pre_commit/pre_commit.rb pre_commit/lib/pre_commit/rspec.rb pre_commit/lib/pre_commit/rspec_on_rails.rb pre_commit/spec/pre_co...