search for: erb_spec

Displaying 20 results from an estimated 24 matches for "erb_spec".

2007 Jul 14
8
Specing Layouts
Hi, I''ve just started to try and spec my application.html.erb layout as one of the view specs but it totally barfs. I''m guessing that it''s due to the yield statements in the layout. Any clues as to how to proceed? Cheers Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL:
2008 Jun 04
8
Why has the --color gone from my life?
Hi all, Running on OSX 10.5.3, Latest Rspec trunk, Rspec rails trunk, latest autotest gem and rails 2.1 I''ve lost my colour output in autotest. rake spec gives colour output, but autotest gives me black and white. It was working a little bit before, I think I upgraded to the latest versions of everything to get all the textmate snippets talking and being friendly to one another again
2008 Mar 06
0
rake spec aborting
...ec.rb" "spec/helpers/categories_helper_spec.rb" "spec/helpers/works_helper_spec.rb" "spec/models/category_spec.rb" "spec/models/image_spec.rb" "spec/models/user_spec.rb" "spec/models/work_spec.rb" "spec/views/categories/edit.html.erb_spec.rb" "spec/views/categories/index.html.erb_spec.rb" "spec/views/categories/new.html.erb_spec.rb" "spec/views/categories/show.html.erb_spec.rb" "spec/views/works/edit.html.erb_spec.rb" "spec/views/works/index.html.erb_spec.rb" "spec/views/wo...
2008 Sep 14
2
rake spec:rcov => [BUG] Segmentation fault ruby 1.8.6 (2007-09-24) [i386-mswin32]
...ntrollers/sessions_controller_spec.rb" "spec/controllers/ users_controller_spec.rb" "spec/helpers/blogs_helper_spec.rb" "spec/ helpers/users_helper_spec.rb" "spec/models/blog_spec.rb" "spec/models/ user_spec.rb" "spec/views/blogs/edit.html.erb_spec.rb" "spec/views/ blogs/index.html.erb_spec.rb" "spec/views/blogs/new.html.erb_spec.rb" "spec/views/blogs/show.html.erb_spec.rb" --options " C:/Documents and Settings/Scott/My Documents/NetBeansProjects/blog/ spec/spec.opts" failed C:/Documents and Settin...
2008 Jan 11
5
changes in rspec''s trunk and autotest
This applies to anyone using rspec''s trunk from >= 3220 with ZenTest <= 3.7.2. Anyone else, feel free to move on.... The next release of ZenTest, coming soon, includes some changes that improve the relationship between Autotest, it''s subclasses (like those in rspec) and .autotest, the file that you can use to plug into autotest''s hooks to extend/modify
2010 Apr 15
11
Rails 3, Rspec 2, Autotest
Trying to set up a Rails 3 project with RSpec and Autotest. I followed these steps exactly: http://gist.github.com/365816 But when I start up autotest, I get: $ autotest loading autotest/rails style: Rails instead of: $ autotest loading autotest/rails_rspec2 style: RailsRspec2 And autotest doesn''t seem to do anything. Any idea what''s happening? I''m using Ruby
2011 Nov 25
4
Sprockets File not Found Exception.
...me" invoke erb create app/views/pages create app/views/pages/home.html.erb create app/views/pages/contact.html.erb invoke rspec create spec/controllers/pages_controller_spec.rb create spec/views/pages create spec/views/pages/home.html.erb_spec.rb create spec/views/pages/contact.html.erb_spec.rb invoke helper create app/helpers/pages_helper.rb invoke rspec create spec/helpers/pages_helper_spec.rb invoke assets invoke js create app/assets/javascripts/pages.js invoke cs...
2007 Jun 08
5
autotest bug?
...-v gives me: euclid% autotest -v loading autotest/rails_rspec /opt/local/bin/ruby -S script/spec -O spec/spec.opts spec/ controllers/log_entries_controller_spec.rb spec/views/login/ new_spec.rb spec/controllers/login_controller_spec.rb spec/models/ user_spec.rb spec/views/log_entries/edit_html.erb_spec.rb spec/views/ log_entries/index_html.erb_spec.rb spec/views/log_entries/ new_html.erb_spec.rb spec/views/log_entries/show_html.erb_spec.rb spec/helpers/login_helper_spec.rb spec/models/log_entry_spec.rb ........................................................................ .....F.. 1) '...
2012 Nov 06
2
rspec failure upon revisit
...er add some examples to (or delete) /Users/andrewchickedantz/rails_projects/sample_app/spec/models/user_spec.rb # No reason given # ./spec/models/user_spec.rb:4 users/new.html.erb add some examples to (or delete) /Users/andrewchickedantz/rails_projects/sample_app/spec/views/users/new.html.erb_spec.rb # No reason given # ./spec/views/users/new.html.erb_spec.rb:4 Failures: 1) LayoutLinks should have a signup page at ''/signup'' Failure/Error: response.should have_selector(''title'', :content => "Sign up") expected following o...
2008 Jan 13
10
.html.erb files and autotest
When I work with a .html.erb file, the autotest rspec on rails stuff doesn''t understand the file to map it to the right test. I wanted to submit a patch for this, but I''m unsure where the specs would be to update. I found the necessary mapping in rspec_autotest.rb, but I can''t find any specs anywhere. Help? I just need to have /app/views/coupon/index.html.erb to map to
2007 Oct 15
4
Stories location
Should the stories dir be located on the project root? I was expecting to find it located under spec/ but there isn''t anything there, just the stories dir off of /. Also there don''t appear to be any rake tasks for stories, nor generators. Should there be any? Thanks, Steve
2011 Jun 29
6
RSpec with Rails 3.1rc4: spec test won't recognize <%= %> (should be simple)
...urrent_user_session.destroy flash[:notice] = "Logout successful!" redirect_back_or_default new_user_session_url end end ======== In views/user_sessions/new.html.erb: <!--user_sessions#new--> Admin Login <%= @message %> ======== In spec/views/user_sessions/new.html.erb_spec.rb: require ''spec_helper'' describe "user_sessions/new.html.erb" do context "displays the admin login form" do it "shows the title" do render rendered.should have_content("Admin Login") # this is fine rendered.sho...
2007 Oct 23
10
How is everyone structuring stories?
Bleeding-edge story-writers, How are you structuring your specs? I am working on a new project and tried this: ./lib ./blah ./spec ./blah ./stories But it breaks autotest, so I moved stories parallel to lib and spec. Also what about suffixes? I have adopted "xyz_story_spec.rb", and "xyz.story" for the time being, with the line runner =
2007 Nov 20
5
Autotest rspec issues
...alize error, complaining about wrong arguments (0 for 1) or somesuch - the exact stack trace and error I can post when home again tonight. 3. I can live with the first two, but autotest isn''t picking up any changes to any view specs. I''ve tried index.rhtml_spec.rb and index.html.erb_spec.rb but nothing does the trick. Controller spec changes are detected just fine. Haven''t tried model specs yet. I''d love to hear any suggestions you may have and thank you kindly in advance. Brad -- Posted via http://www.ruby-forum.com/.
2008 Jan 21
0
no method error
...t; > 3) > NoMethodError in ''/chapters/new.html.erb should render new form'' > undefined method `process_clean_up_fixtures'' for > #<Spec::Rails::Example::ViewExampleGroupController:0x447ddcc> > c:/rails/rails_apps/tracker/spec/views/chapters/new.html.erb_spec.rb:15 > script/spec:4: Can we see some code? What do the spec and the view look like? > Also, no word on my autotest question? > > c:\rails\rails_apps\tracker>autotest > loading autotest/rails_rspec > from > C:\Rails\rails_apps\tracker\vendor\plugins\rspec_on_rails\lib\aut...
2011 Dec 02
0
Testing Views with Rails 3 and Rspec2 - Can't stub request.path_params[:controller]
...s_admin_stores_index_html_erb___284062528844236588_2236860180__1529683073472994564'' # ./app/views/admin/stores/index.html.erb:5:in `_app_views_admin_stores_index_html_erb___284062528844236588_2236860180__1529683073472994564'' # ./spec/views/admin/stores/index.html.erb_spec.rb:17:in `block (3 levels) in <top (required)>'' Any ideas about how to stub or simulate the request.path_parameters[:controller]? Thanks. -- Posted via http://www.ruby-forum.com/.
2007 Dec 07
4
strange error on mock proxy
...ion_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/lib/spec/example/example_methods.rb:42:in `eval_each_fail_fast'' vendor/plugins/rspec/lib/spec/example/example_methods.rb:41:in `each'' vendor...
2010 Aug 18
2
RSpec 2/Rails 3 - content_for in view specs
...# /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 them worked -- they all give various errors. Here is my view spec that I'...
2007 Aug 14
12
expect_render, why does there need to be a warning
There is a warning on the web site about expect_render and stub_render: "WARNING: expect_render and stub_render, while very useful, act differently from standard Message Expectations (a.k.a. mock expectations), which would never pass calls through to the real object. This can be very confusing when there are failures if you''re not aware of this fact, because some calls will be
2007 Oct 09
23
Testing layouts with RSpec on Rails
Hey guys, Does anyone have any wisdom to share on the subject of speccing Rails layouts? Most of it''s plain old view specs stuff, but are there sensible ways to verify things like the yield call? (Mocking doesn''t catch that) Thanks, Matt -- Matt Patterson | Design & Code <matt at reprocessed org> | http://www.reprocessed.org/