similar to: rspec error's when checking LayoutLinks from the railstutorials

Displaying 20 results from an estimated 300 matches similar to: "rspec error's when checking LayoutLinks from the railstutorials"

2012 Nov 06
2
rspec failure upon revisit
I just returned from a different project after taking a few weeks off of my tutorial. I''m using Ruby on Rails 3 Tutorial - Learn Rails by Example by Michael Hartl. After rebooting my server I ran an rspec spec/ command to check to see if there were any problems and this is what I received. I didn''t modify anything except I did overwrite users_controller.rb and
2011 Jun 09
0
failing integration test
I am following the Ruby on Rails tutorial here: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book?version=2.3 I am at this section: http://ruby.railstutorial.org/chapters/filling-in-the-layout?version=2.3#code:layout_links_spec Here is my layout_links_spec.rb: require ''spec_helper'' describe "Layout links" do it "should have a Home page at
2013 May 12
10
Capybara with redirect
I am having an issue where a feature works fine but the corresponding test fails, and I can''t understand why. I created a mock application to demonstrate the problem. https://github.com/assafshomer/clear_button All it does is show an input form with a clear button. The clearing happens by redirecting back to the same form. It does clear it when you run the app, but the test for it
2010 Sep 03
1
Action Controller Error: undefined local variable or method `current_user'
Newbie learning Rails. I''m currently on Chp9 here: http://railstutorial.org/chapters/sign-in-sign-out#top At the end of the tutorial, rails is erroring (see below). being new to Rails and after having checked the tutorial... How do you resolve this kind of error. It''s saying current_user is not defined, and it is supposed to be defined with/Sites/sample_app/app/helpers/
2009 Apr 02
8
Problem with Custom matcher and Blocks
Hi, I''m trying to write my first custom matcher. Here''s a bit of my example group. describe "/contact/index" do include FormMatchers before(:each) do render ''contact/index'' end it "should show the contact form" do response.should have_a_contact_form end describe "the contact form" do context
2011 Jul 26
1
have_selector syntax?
Where are the docs for have_selector()? rspec-rails 2.6.1 rails 3.0.9 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2012 May 09
5
Unicorn doesn't play nice with Capistrano deployment?
I am having issues when using unicorn with a Capistrano deployment. >From what I have been able to understand Capistrano uses a scheme in wich every release is deployed inside the releases directory under a unique name and if the transaction was successful, creates a symlink named current that will point to that release. So I end up with a deployment directory such as:
2011 Oct 02
5
tutorial: gravatar_image_tag problem
Hi all, Still working through the Hartl tutorials. Making progress but am hitting (another) wall. The repository is on github at: git-9UaJU3cA/F/QT0dZR+AlfA@public.gmane.org:aamax/sample_app.git if you want to see the code. I''ve pretty much followed the tutorial exactly except I am using rails 3.1.0 rather than 3.0.1 and some of the other gem versions are different. I
2013 Jan 09
2
Rails 3.2.10 and Rspec Tests that Fail?
The following tests used to reside in requests directory and used to work ... since I have upgraded to rails 3.2.9 and now 3.2.10 they fail. I have the following tests in(I am only showing the first two tests): spec/features/authentication_pages_spec.rb require ''spec_helper'' describe "Authentication" do subject { page }
2013 Mar 14
7
No Migration Files are created
I''ve been working with Rails for 3 Months now, but haven''t experienced this problem until now. I''m currently working through Micharl Hartls Tutorial and everything worked fine so far, but suddenly (chapter 11) I can nolonger create Migration Files. when entering "rails g model Name field1:type" I don''t get the usual "create db/migrate...."
2007 Mar 02
1
example standalone error.
Hello, Trying to get the example to work in standalone mode. I have the following in a file and am not certain why I get this undefined method error: error: ~/ruby sample_app.rb my sample app :) sample_app.rb:9: undefined method `new_worker'' for BackgrounDRb::MiddleMan:Class (NoMethodError) ### code follows ### # sample_app ... try to get stand-alone happiness. #require
2011 Oct 08
1
Rails view spec expectations/matchers
>From looking at the RSpec Rails documentation (https://www.relishapp.com/rspec/rspec-rails/docs/view-specs/view-spec) it seems like rendered is just a string and you can''t really do any assert_select type stuff out of the box. After Googling around, it seems that the RSpec authors decided that if you want that functionality, you should just use Capybara or some such... is that
2012 Jul 22
1
RSpec/rails & Capybara: #within
I''m new with Capybara and after a good amount of google, I still can''t figure out how the #within methods works! I can use it only if I call visit before? There''s no way to use it on a string, like the `page = Capybara.string(html_string)` trick? When describe a view, I want something like that: describe "path/to/view.html.erb" do it "should pass"
2006 Dec 03
1
File Upload Unix Only?
I tried the upload feature in merb 0.0.7 using http://localhost:4000/files I get the following: Permission denied - D:/Temp/Merb.5172.0 or E:/Dev/Ruby/merb-0.0.7/examples/sample_app/dist/public/files/foobar.jpg - (Errno::EACCES) C:/Ruby/lib/ruby/1.8/fileutils.rb:501:in `rename'' C:/Ruby/lib/ruby/1.8/fileutils.rb:501:in `mv'' C:/Ruby/lib/ruby/1.8/fileutils.rb:1379:in
2011 Aug 04
1
GitHub - How to resolve this issue of preventing push to origin?
When I try to push my application to ''GitHub'' using ''Git'', I get the following: $ git push origin master Enter passphrase for key ''/c/Users/Medicine - SWEng/.ssh/id_rsa'': ERROR: Repository not found. fatal: The remote end hung up unexpectedly **EDIT:** Output of running `git remote -v`: $ git remote -v heroku
2012 Feb 03
10
ruby on rails 3 tutorial book chapter9 Signin Failure
Hi I have problem trying to pass the signin failure test. This is the test code of the sessions_controller.rb def create user = User.authenticate(params[:session][:email], params[:session][:password]) if user.nil? flash.now[:error] = "Invalid email/password combination." @title = "Sign in" render
2006 Dec 03
2
How To Create Database Tables With Merb 0.0.7?
Howdy, I just gem unpacked merb and have configured the sample_app to use an sqlite3 database. I see that the Rakefile has a task named "schema", but it points to /dist/schema/schema1.rb", which doesn''t exist. I copied /dist/schema/schema1.rb to /dist/schema/schema.rb then ran "rake schema". What''s the recommended way to create the database tables?
2006 Dec 07
3
What does js partial(...) do?
In the example application named "sample_app", comment.jerb contains the following line: $(''comments'').update(<%=js partial(:comments) %>); What does the ''js'' method do to/with, if anything at all, ''partial(:comments)''? Merb is quite fun to use and I''m starting to get a feel for it and ruby. I''m surprised at
2011 Apr 26
1
new goodness, Capybara::RSpecMatchers in helper specs
This https://github.com/rspec/rspec-rails/commit/59793dcc349b64f4ebcf742606371001256c774d is exciting news!! ("this adds capybara matchers to view and helper specs") Now, if I just knew how to take advantage of it? Do I have to require something else in spec_helper? I have already added included gem ''rspec-rails'', ''~> 2.6.0.rc2'' gem
2010 Sep 01
2
Undefined methods: has_selector? and flunk
I''m in the process of updating an app for Rails 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