search for: nested_1

Displaying 10 results from an estimated 10 matches for "nested_1".

2010 Aug 30
1
undefined method `route_for' for #<RSpec::Core::ExampleGroup::Nested_1::Nested_1:
Hello, all, I have this error with my rspec - controller - test, and yes, I do found the thread with the same error here, but it isn''t helped me, think it''s not my case. i have rails -v = Rails 3.0.0.rc, rspec -v = 2.0.0.beta.18 (hope they should match each other). my test is here: spec/controllers/posts_controller_spec.rb and i ran it with command: rspec
2012 Sep 16
0
tutorail test writing problem
...67/demo_app And the faiing message is : Failures: 1) Static pages Home page should have the content ''Sample App'' Failure/Error: visit ''/static_pages/home'' NoMethodError: undefined method `visit'' for #<RSpec::Core::ExampleGroup::Nested_1::Nested_1:0x0000080572bf98> # ./spec/requests/static_pages_spec.rb:8:in `block (3 levels) in <top (required)>'' Finished in 0.0099 seconds 1 example, 1 failure Failed examples: rspec ./spec/requests/static_pages_spec.rb:7 # Static pages Home page should have the content &...
2013 Mar 02
0
Problems getting rspec testing working in OSX?
...1) apache On a Debian OS with no package name specified Failure/Error: should contain_package(''httpd'').with( { ''name'' => ''apache2'' } ) NoMethodError: undefined method `contain_package'' for #<RSpec::Core::ExampleGroup::Nested_1::Nested_1:0x11038d630> # ./spec/classes/apache_spec.rb:13 2) apache On a RedHat OS with no package name specified Failure/Error: should contain_package(''httpd'').with( { ''name'' => ''httpd'' } ) NoMethodError: undefined method `c...
2010 Sep 01
2
Undefined methods: has_selector? and flunk
...3.0 and rspec-rails 2.0.0.beta20. When I''m running my specs (rake spec) I get a large number of errors caused by two undefined methods undefined method `has_selector?'' for #<String:0x7fdbd0b5b270> undefined method `flunk'' for #<RSpec::Core::ExampleGroup::Nested_15::Nested_1::Nested_2::Nested_2:0x7fdbd0c48fe8> I''ve seen the upgrade notice for beta20 and now include capybara explicitly in the test group of my Gemfile. The version o...
2010 May 07
2
Rspec beta8: helper methods issues
...for example the following spec it ''should set monday as first day of the week'' do helper.ordered_day_names.first.should == ''Lun'' end raises the error undefined local variable or method `helper'' for #<Rspec::Core::ExampleGroup::Nested_2::Nested_1:0x2da5d10> 3) testing views where I call helper methods I need to explicitly stub out the helper methods, even if I include the helper module. This all happens with rspec beta 8, rails 3.0beta3, and ruby 1.9.2 Regards Andrea
2008 Jan 24
3
Help to spec a rails helper method that uses content_for
Hi guys, I am a Rspec newbie and am having problems creating a spec for a RoR helper method. I have in fact already implemented the helper method and am trying to create retrospective specs. I know its the wrong way to do it but I am still learning Rspec. In my view I have a call to a helper method. <% body_class "users" %> which sets a CSS class declaration in the content_for
2012 Sep 15
2
[RSpec Testing] Methods take two arguments
...than two arguments. But, when I try to run my test. It showed *PdfHelper Should have two arguments Failure/Error: create_pdf.should_receive(object,template).with(user,file) NameError: undefined local variable or method `create_pdf'' for #<RSpec::Core::ExampleGroup::Nested_1:0xabf72f0> # ./pdf_helper_spec.rb:13:in `block (2 levels) in <top (required)>'' *here is my pdf_helper_spec.rb file: * require ''pdf_helper'' describe "PdfHelper" do it "Should be in public folder" do file = File.n...
2010 Jun 20
10
RSpec 2 view example: render_template
...d correct? From the outset, it looks wrong because it sets an expectation (view.should ...) after the call to render. Then, no matter if I leave that line where it is or put it before the render, I get an exception undefined method `render_template'' for #<RSpec::Core::ExampleGroup::Nested_1:0x7f6c0632fea0> Michael -- Michael Schuerig mailto:michael at schuerig.de http://www.schuerig.de/michael/
2012 Jul 17
24
Static Pages from Railcast
Hi everyone, I need several pages to be static but also modify when requested. I try following the railcast from Ryan at http://railscasts.com/episodes/117-semi-static-pages?view=comments Here what I have done!! rails g scaffold Pages name:string permanentlink:string title:string author:string access_level:string is_published:boolean meta_description:string meta_keyword:string
2010 Jun 20
7
rspec-rails 2.0.0.beta.12 showing undefined method error for route_to
First of all, I''ve been trying to find an answer for this problem all over the internet without luck. The thing is that I am using RVM with ruby 1.9.2-head and I created a new empty gemset. Then I installed bundler gem with: gem bundler install That installed the library into the /Users/damselem/.rvm/gems/ ruby-1.9.2-head at rails3/gems directory. Then I went to my rails 3 app