similar to: Do you ALWAYS use "bundle exec rspec spec" tests?

Displaying 20 results from an estimated 10000 matches similar to: "Do you ALWAYS use "bundle exec rspec spec" tests?"

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
2010 Oct 20
3
rspec error's when checking LayoutLinks from the railstutorials
I am following the rails tutorial: http://railstutorial.org/chapters/filling-in-the-layout#top Basically the test is something like: spec/requests/layout_links_spec.rb require ''spec_helper'' describe "LayoutLinks" do it "should have a Home page at ''/''" do get ''/'' response.should
2011 Nov 12
4
No route matches [GET] "/microposts/304"
Hi all, I''m learning Rails by Example (chapter 11), by Michael Hartl ( http://ruby.railstutorial.org/chapters/user-microposts#top) but I got no route matches when I try to delete one micropost. the _micropost html is... <tr> <td class="micropost"> <span class="content"><%= micropost.content %></span> <span
2007 Oct 11
4
[RSpec] Question about using TextMate Bundle...
Hey Everyone, First time poster! woot! Can someone please point me to a Wiki, FAQ, web page, that I can reference to help me debug why my installation of the TextMate Bundle doesn''t work? Am I supposed to install the gem, then install the plugins into a project, then install the bundle before the bundle can work? I can run ''rake spec'' at the command line just fine;
2007 Oct 30
7
RSpec Texmate Bundle errors
I''ve the same problem as Alastair when running rspec command : http://lists.macromates.com/pipermail/textmate/2007-October/022585.html ../spec/mate/runner.rb:34:in `run'': undefined method `parse'' for Spec::Runner::OptionParser:Class I fixed this for me by changing the offending line to : ::Spec::Runner::CommandLine.run(argv, STDERR, stdout) (see
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
2009 Mar 07
2
[rspec/tm] When running the textmate bundle hook using command-r I get an error about missing rubygems
I get the following error using both edge version of the TM bundle and rspec/rspec-rails in vendor/plugins. /Users/nshb/Library/Application Support/TextMate/Bundles/ RSpec.tmbundle/Support/lib/spec/mate.rb:2:in `require'': No such file to load -- rubygems (LoadError) from /Users/nshb/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/mate.rb:2 from
2007 Oct 13
3
[RSpec] Unexpected behavior using TextMate Bundle...
Howdy, Why does the bundle NOT work when I do the following: - Start TextMate - Open my project - Open my spec - Try to run spec and get an error While the following DOES work: - Open Terminal - Locate my project - Start TextMate via command line (mate .) - Open my spec - Try to run spec and it works Cheers, Mel -------------- next part -------------- An HTML attachment was
2010 Aug 06
1
Could not find generator rspec:install.
I''m trying to follow this tutorial here: http://railstutorial.org/chapters/static-pages#top When I run: $ rails generate rspec:install I get: Could not find generator rspec:install. What could be the problem? Thanks.
2009 Oct 23
1
Anyone using the rspec textmate bundle with Ruby 1.9.1
I''m now in the process of facing converting a rails app to use Ruby 1.9.1. Has anyone figured out how to use 1.9 with the RSpec bundle in textmate and preferably how to switch back and forth? -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn:
2012 Jul 23
1
Unable to Run 'bundle exec cucumber'
Hi, I have a cucumber problem that is preventing me from running all my feature files, anyone has come across to this problem ? On Windows with. cucumber (1.2.1, 0.9.4) Command: bundle exec cucumber C:/Ruby187/lib/ruby/gems/1.8/gems/gherkin-2.2.9-x86-mingw32/lib/gherkin/lexer/i18n_lexer.rb:23: [BUG] Segmentation fault ruby 1.8.7 (2012-06-29 patchlevel 370) [i386-mingw32] Thanks -- Posted
2013 Oct 08
1
Trouble with rspec and FactoryGirl Sequence
I''m following Michael Hartl''s Ruby on Rails 3 Tutorial but I''m using Rails 3.2.8 and FactoryGirl 4.2.0 and rspec 2.14.1 I''m in chapter 10 trying to generate tests for pagination (using will_paginate 3.2.5 which works fine in dev) I can get FactoryGirl to test just fine if I don''t use Sequence but I can''t seem to figure out the correct syntax
2007 May 18
1
problems with textmate and rspec bundle
Folks, I saw David''s tutorial yesterday at RailsConf and started working on RSpec lastnight and am having a *ton* of trouble with the bundle for TextMate. I''ve made *some* progress, but thought I''d throw it to the list * I run ruby, including rb-rubygems using the MacPorts install (per JDD''s Sandboxing Rails) * installed rspec 0.9.4 (also rcov 0.8.0.2 and
2007 Oct 10
9
Rspec Textmate bundle errors
Hello all, Having a problem with the Rspec textmate bundle and having quizzed the guys in #textmate to no success about the errors, I''ve been suggested to try you guys! When I run the "Run Behaviour Description" command, I get the following errors: /Users/alastair/Library/Application Support/TextMate/Bundles/ RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:34:in
2011 Aug 25
2
Problem with rails generaterspec:install, Error-Message: no such file to load, sprockets-railtie (loadError)
Hey guys, I''m a RoR-Beginner and I started learning it with the RoR-Tutorial. Actually I''m at this chapter (http://ruby.railstutorial.org/chapters/ static-pages#top) and try to install rspec. But everytime when I try to use "rails g rspec:install" I get this error message: C:\Sites\rails\rails_projects\sample_appp>rails g rspec:install
2008 Jan 27
8
Textmate RSpec Bundle ''it'' snippet
It seems to me that the RSpec bundle''s ''it'' snippet is in need of some love. By default, a newly inserted spec passes. This seems odd as it is misleading. It also makes it harder find what specs still need to be completed if you return to an RSpec module after a break. I propose that the ''it'' snippet is changed to the following: it
2013 Apr 23
4
Examples of long AND WELL-WRITTEN Ruby scripts
I''m looking for examples of Ruby scripts that are long AND well-written. I have a Ruby script for scraping information on stock ETFs and mutual funds and storing the data in a Postgres database at https://github.com/jhsu802701/bsf-scrape/blob/master/scrape.rb . While I need to make some minor changes to it (like providing external options to choose between the long and short
2013 May 02
1
trouble-with-capybara-and-rspec-on-a-new-model-spec
I have searched a lot for a solution, but I could not find it! I am trying to make a rails application after watching Michael Hartl''s tutorial and when i fill data manually and submit it nothing happens and nothing records in the Mailers table and I am facing the following error: Failures: 1) Mailer pages mail us with valid information should send a mail Failure/Error: expect
2011 Jun 12
3
Problem with undefined variable current_user
Hi everyone, I''m working through the tutorial at the following link and attempting to customise/adapt the lessons for my own slightly different application. Link: Ruby on Rails Tutorial: Learn Rails by Example | Ruby on Rails 3 Tutorial book and screencasts | by Michael Hartl <http://ruby.railstutorial.org/ruby-on-rails-tutorial-book> I''m currently trying to work
2011 Jan 20
11
RSpec / Cucumber painfully slow Rails 3 OSX
I am working on my first Rails BDD project with extensive tests since starting out with Rails a few years ago. Running RSpec or Cucumber is really slow. I''m using Rails 3 and RSpec 2. To run one model spec with only 5 tests takes almost 1 minute! When it finishes it says it took only 0.9 seconds to run the actual test. So obviously it is loading the environment that takes so long. I just