Hi Ryan,
I think there is a problem with the screencast today, I don't seem to be able to download or view it. Nobody else has commented, so I thought I better :-)
@Gavin, Yes, me too! Initially I thought it might be a local problem or perhaps i was trying to pull it a bit too soon but it seems like something is missing on Ryan's end.
@Ryan, waiting patiently.
Cheers,
Aditya
I'm unable to download the screencasts, too. Seems that the media server is down.
No problems at all here.
Great 'cast Ryan - as a bonus you may want to add a link to Ben Mabey's presentation at MountainWest RubyConf
http://mwrc2009.confreaks.com/14-mar-2009-15-00-bdd-with-cucumber-ben-mabey.html
^^ I like how he breaks everything down
Great introduction to cucumber! I already knew the framework and noticed, that you're pointing out the power of it very clear. A great starting-point for your audience.
Cheers,
Florian
Hey Ryan,
This looks great! One question I had, is this something that can replace shoulda? I know you said to do continue doing unit tests - so is this something I use in combination with shoulda (like your use of rspec)?
Working for me now too. :-) Wow, Cucumber is really impressive, I've been quite intimidated by the various Rails testing methodologies but this seems quite friendly.
Great cast!
Maybe next week you can cover Cucumber with Ajax?
Keep up the good work!
Sorry about the download problems guys. Dreamhost has been a little flaky lately. May be time to find a mirror for when this happens.
@pimpmaster, good idea! I knew I forgot some other resource links. I'll add it.
@Jay, Cucumber is most often used with RSpec, but it isn't tied directly to any testing framework. You can definitely use Shoulda with it instead.
@Anlek, I plan to do more Cucumber testing episodes in the future, but not yet sure on the specific topics. Thanks for the suggestion.
Test::Unit::TestCase ... I mean ActiveSupport::TestCase for life!
Am I the only one who find these testing frameworks extremely annoying?
Cucumber is a similar but improved way of "plain text stories"
http://blog.davidchelimsky.net/articles/2007/10/22/plain-text-stories-on-rails
and also integrates them.
In my opinion BDD (using cucumber) is the best way to test a rails application and present the result to a customer (which may not be familiar with programming).
Very nice screen-cast. I'm hoping to see more BDD screen-casts in the future, especially about Cucumber and RSpec.
Thanks!
Hi Ryan,
Cracking Screencast this week - but here's a bit of an OT question - in this you're using the Rails bundle for textmate, yet you appear to have different shortcuts to the one I have - for instance forin and field are missing from mine - where did you get yours from?
Really good introduction to BDD. I'm gonna show your screencast to the rest of my team since I already wanted to convince them about Cucumber.
Well done again,
and thanks.
Attila
Thank you for this useful and timely cast.
I'd like to see one about RSpec replacing Test::Unit.
That is so cool, Ryan! Just again when I needed an introduction to cucumber you come around with another screencast (was similar back with Liquid)!
All praise our mighty voice from beyond! ;)
Thanks, Ryan. Terrific intro that really helped me begin to wrap my head around Cucumber.
Seems like a great way to build a rock solid Rails apps from the bottom-up.
As always, superlative work.
Very interesting. Keep it up Ryan. Can you please make a screen cast on Globalize 2.
I've been using Watir (Web Application Testing in Watir) for a while now. I've found that when testing javascript applicaitons, the combination of Cucumber/SafariWatir/Safari4.0 is very fluid and very fast.
@Neil, you can find those shortcuts in my textmate bundle.
http://github.com/ryanb/ryan-on-rails.tmbundle/
Markus:
Or Outside-In as we say in BDD land :-)
Hey, thanks for this Ryan. It's a really great intro to Cuke.
@Rich mentioned using Cuke with Watir. I've seen a bit about this but would love to find out a little more about this and about using Cuke with Selenium.
This is a pretty neat intro to Cuke w/ Watir: http://www.vimeo.com/2871256 but it aint no Railscast!
Great screencast. Just what I need but I'm having problems installing rpsec and rspec-rails. When I install the gems I get: Could not find main page README.rdoc
Cucumber and Webrat installed just fine though. Any ideas? I'm on leopard.
Hi Ryan,
I was just wondering how you would go about defining a resource route using the paths case statement.
For example:
When I go to Bitstar Media's project Computer Science show page
http://pastie.org/437618
I am having alot of trouble getting this type of functionality with Cucumber. Any tips?
(not related)
I am having issues with a rails app that I am sure is fairly trivial. I generated a generic scaffold, implemented restful_auth per your instructions, and mucked around with the layout. Now I have discovered my named route new_todo_path doesn't work anymore it points to /todo/new which makes the url localhost/todo//todo/new or localhost//todo/new because I had set todo as the root controller in my routing file. Any ideas? All other routes work fine. Another strange thing is if I manually go to localhost/todo/new it creates a record without me even submitting the form.
I have setup Cucumber as outlined in the Railscast. Cucumber on a Windows Vista System console does not show correct (ansi escape coded) colors.
How to setup Windows Vista Home Premium w Rails 2.3, cucumber, rspec,
rspec-rails, webrat for proper Cucumber console colors.
Superb intro to Cucumber. Many thanks.
Ken Wagner
@Kenneth:
Try to use this tutorial to install Cygwin as a Unix-like terminal:
Cygwin Info: http://en.wikipedia.org/wiki/Cygwin
Tutorial for rails: http://phaseshiftllc.com/archives/2008/10/02/setting-up-rails-on-windows-with-cygwin
- Florian
I just installed all this and the default webrat file was missing the go to method (amongst others). Also didn't have the routes file, either.
I lifted them from your git repository and then webrat started complaining that it wasn't configured properly and needed
Webrat.configure do |config|
config.mode = :rails
end
Suspect the gems have moved on but as usual the documentation doesn't tell you.
Ryan, you are a really mean guy, you know? I wanted to use the easter weekend to get forward with my app, but I guess, now I'm gonna play around with cukes all day long. ;)
missing in your code listing:
# config/routes.rb
map.resource :articles
ups... should be:
# config/routes.rb
map.resources :articles
OK, repeated you tutorial. Just started with Rails and wanted to check out a good TDD scheme for Ruby and found Cucumber & RSpec. The homepages are nice for experts, but not a single step-by-step guide for getting it to work for newbs. Especially the rake commands are given NOWHERE and as a newb the problem with tables reported by Cucumber (if you don't know you need to clone) and the official Cucumber Wiki example actually using a table in the feature got me going crazy... Your railscast on this should become part of the official documentation! Thanks loads, man!!!
Great screencast as always!!
I am new to BDD and am trying to figure out when it is that one would use rspec in this process? After the Cucumber features pass? Would rspec just get used for unit testing at that point?
Thanks again!
Eric
Hi,
for all windows (Netbeans) developers:
I've written a Module for Netbeans which allows "Syntax Highlighting" and more for .feature files.
So if you are interested in it, you can find it on the Netbeans homepage:
http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=17939
or on my homepage:
http://members.chello.at/server/modules.html
Thanks once again for your railscasts, Ryan!
I'm now learning cucumber and found your explanations very concise and helpful. :)
Thanks for the great Railscasts...
I had trouble installing webrat on ubuntu until I installed the required packages described on this page http://wiki.rubyonrails.org/testing/webrat#installation
-- Jean-Marc
If you are new and following along at home with a newer version of Cucumber (I've got 0.3.5), the -n switch for the "cucumber features" command will generate an error. Apparently -n refers to a different option in later versions, and the current equivalent is "--no-source".
Love these testing screencasts, Ryan! They are the only comprehensive source I've seen that walks through using all of the tools together to write tests for and code for a vaguely realistic Rails app, without assuming I am already a testing wizard.
Thank you for bringing us this information, I truly did appreciate the good work.
Hey Guys,
Don't panic if you are getting below error when you tried to run "cucumber features -n":
missing argument: -n (OptionParser::MissingArgument)
You are getting this error because cucumber version is now updated.
Try to run "cucumber features" and it will work fine!!!
Hi,
First of all thanks for making this tutorial, someone told me it was a good one to learn from.
Here's my current problem
~/www/blog$ cucumber features -n
bash: cucumber: command not found
Any idea what i can do ? i haven't been able to find a fix on Google ( perhaps i was searching improperly )
I have posted a version for people with Ubuntu 9.04 to give this a shot. I hope you guys dont mind. I did give credit at the top of the post.
http://aslambilal.blogspot.com/2009/06/beginning-with-cucumber-for-ubuntu-904.html
Great introduction to cucumber! I already knew the framework and noticed, that you're pointing out the power of it very clear. A great starting-point for your audience.
I'm unable to download the screencasts, too. Seems that the media server is down.
I've created a custom formatter that generates better HTML output for use with your cucumber projects and textmate
I've created a custom formatter that generates better HTML output for use with your cucumber projects and textmate
http://github.com/raldred/cucumber_textmate/tree/master
These are excellent tips on creating a buzzing community. I particularly like No. 11 which mentions counting the number of shared experiences rather than the users. Very true indeed. This is exactly how a good community grows.
I'm new here. Love it already.
Reply
I just installed Cucumber and Ruby on Rails on a Fedora 12 virtual machine. I am having the following issue complaining about jopenssl. Any ideas what could be wrong? Thanks
[root@bldr-vcm25 blog]# rake gems:install RAILS_ENV=test --trace
(in /home/aavella/Documents/blog)
** Invoke gems:install (first_time)
** Invoke gems:base (first_time)
** Execute gems:base
** Invoke environment (first_time)
** Execute environment
rake aborted!
no such file to load -- jopenssl
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:271:in `require_frameworks'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:134:in `process'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in `send'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in `run'
/home/aavella/Documents/blog/config/environment.rb:9
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:521:in `new_constants_in'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/tasks/misc.rake:4
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/tasks/gems.rake:17
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
/usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19
[root@bldr-vcm25 blog]#
Jeg er ny til BDD og jeg forsøger at finde ud af, når det er, at man ville bruge rspec i denne proces?
Your article is very good.I like it very much.
www.eshooes.com
Thanks for the great screencast, Ryan.
Note:
From Cucumber 0.4.5 and onwards you will also need to install the 'cucumber-rails' gem, or else 'script/generate cucumber' will fail.
FYI, as of cucumber-0.4.2 you'll need to use cucumber-rails otherwise the generators wont work.
sudo gem install cucumber-rails
config.gem "cucumber-rails"
Hi,nice article for beginners.I would like to know if cucumber works for AJAX based functions.If yes,how?If no,Why?how can it be achieved?
thanks JPB, script/generate cucumber didn't work for me, your comment just made the trick: you need cucumber-rails gem now
I used Term for a class name but it seems to be incompatible with Cucumber. Thanks for all the podcasts. http://stackoverflow.com/questions/1736747/how-to-resolve-rails-model-namespace-collision
Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon.
Thank for nice post. I followed till the end but the result is not as expected.
Anyone could help?
http://pilgrimonerp.wordpress.com/2010/04/06/couldnt-find-cucumber-generator/
ing this information. Someone on Yahoo Answers referred me here
<a href="http://lamartina.me/la-martina-polo-shirts-c-4.html">La Martina Polo</a> is one of the best brands from Argentina polo which sells high quality <a href="http://lamartina.me/">La Martina</a>
Thanks for sharing this information. Someone on Yahoo Answers referred me here and I love it.
oh,very nice!
http://www.dunksdunks.com/
http://www.nikesbdunksb.com/
http://www.offeredhardy.com/
http://www.handbagsarea.com/
I just cant end reading through this. Its so cool, so total of information that we just didn't know. Im glad to determine that persons are basically composing about this problem in this kind of a intelligent way, displaying us all various sides to it. Youre a great blogger. Please maintain it up. I cant wait to go through what's future.
I read your article.The things you have written sound very sincere and
nice topics i am looking forward to its continuation. Many of us don't
know about this event. Your post is helpful.
That was a great post! Thanks for providing the informative article indeed
Well, this is a very valuable post. Thanks for the information you provided. It would be great if got more post like this. I appreciate it.
Many popular style of NIKE SB and NIKE DUNK shoes are on sale in www.ok-nike.com now , you can find a suitable nike dunks Anyway .welcome !
I'm waiting when you talk to your God.
Homes For Sale, Foreclosures listings from homesbylender.com register free. If you are selling your home by owner visit homes by lender and list it here for free.
I found your post very interesting, I think you are a brilliant writer. I added your blog to my bookmarks and will return in the future. I want to encourage you to continue that marvelous work, have a great daytime!
I found your post very interesting, I think you are a brilliant writer. I added your blog to my bookmarks and will return in the future. I want to encourage you to continue that marvelous work, have a great daytime!
thanks for your post i was looking for something like this. Ill be subscribing to your RSS feed.
I like this page, very useful to me, thanks for your sharing, i will bookmark this page.
I found this informative and interesting blog so i think so its very useful and knowledge able.I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me.
What is also interesting that this is a problem where simple attention, exposure,
got it to disappear. Where the old "power of the pen" becomes reaffirmed in the
internet age.
In this episode we will create a new Rails application from scratch using behavior driven development.
免费代码的所有功能于一身的<a href="http://www.metallic-yarn.org/">金银线< / 1 “免费codeand我
联营公司filetypesyet功能简单的<a href="http://www.guccihandbagsale.org/">古奇手袋< / 1 >我要makeand
Buying ativan online is the safest and fastest way to care about your health
I'm getting funky error output (not matching yours). cucumber seems to be suppressing the errors? See http://stackoverflow.com/questions/3232856/cucumber-errors-suppressed-not-displayed-fully for full details.
Any suggestions?
Buying ativan online is the safest and fastest way to care about your health www.nflvikingsjerseys.com
Excellent post. Thank you for sharing. All the best.
I admire the valuable information you offer in your articles. I will bookmark your blog and have my children check up here often. I am quite sure they will learn lots of new stuff here than anybody else!
If you have more details about other stuffs than please post here i would like to know more about these.
Excellent post, thank you very much for taking the time to share with those who are starting on the subject. Greetings
Some of the screencasts were down, but thanks for sharing this resource.
This is all very new to me and this article really opened my eyes.Thanks for sharing with us your wisdom
Coach is a world brand, product quality is good, it is a kind of fashion.
I was just doing some web browsing on my Garmin Phone during my break at my work place, and I came across something I thought was interesting . It linked over to your website so I clicked over. I can’t really find the relevance between your site and the one I came from, but your site good none the less.thanks for sharing thoes informations , It is interesting, i like it!
great screencast on cucumber framework. excellent for those not familiar with cucumber
Louis Vuitton handbags http://www.louisvuittonhandbagsale.com/
Louis Vuitton http://www.louisvuittonhandbagsale.com/
Gucci http://www.guccibagsale.org/
Register domain names, Free DNS Manager, Site builder, 301, email forwarding. Cheap .co.uk .com domains registration, Plesk web hosting. No hidden fees.
I tried to think so, but i found it was not as the same in the actual process. As you mentioned, I still have doubts, but really thank you for sharing!
I recently came across your article and have been reading along. I want to express my admiration of your writing skill and ability to make readers read from the beginning to the end.thanks for post.
Regards,
Thanks for taking the time to discuss this, I feel strongly about information and love learning more on this.
If you have more details about other stuffs than please post here i would like to know more about these.
hey buddy,this is one of the best posts that I’ve ever seen; you may include some more ideas in the same theme. I’m still waiting for some interesting thoughts from your side in your next post.
SEO UK Get Free consultation from SEO Expert, SEO Consultant Bidyut Bikash Dhar who also offers Link Building Consulting Services in London, UK. If you are searching keywords like SEO consultant UK, SEO expert UK, Link building UK, Local SEO UK, UK SEO, SEO UK, London SEO, SEO London, SEO company London, SEO consultant London, SEO agency London, web London, UK consultant, UK SEO consultant, SEO services London, SEO services UK, SEO Consulting then call us .
Staffing agency can be a lead source for good number of executive jobs. And finding a company that can successfully places people with your kind of skills will be key to success. Basically what kind of position they fill or what types of openings they have can give one an idea of whether it’s worth your time to apply.
Pay Per Click Advertising (PPC) services is one of online marketing services that drives targeted leads to your websites from search engines like Google. Our PPC (pay per click management), CPC expert consultant will ensure best ROI for your business. Call us now for pay per click marketing, pay per click (PPC) advertising, PPC (pay per click) search engine marketing and PPC search marketing services.
Online dating or Internet dating is a dating system which allows individuals, couples and groups to make contact and communicate with each other over the Internet, usually with the objective of developing a personal, romantic or sexual relationship. Online dating services usually provide un moderated matchmaking over the Internet, through the use of personal computers or cell phones.
Casino is a great place to try one’s luck. You do not have to pay the last money. It becomes really interesting when you play online poker for fun and not to earn money. Many have got a passion to play online casino games. But before you begin to play online casino you need to have proper knowledge about online casino poker strategies.
Thanks for such a great post and the review, I am totally impressed! Keep stuff like this coming.
Valuable script to learn. Very Glad that you shared this to us. It's some pretty great info and pretty good post. I'm sure some people will really like this information cause this have genuine information for the readers.Thank you for sharing with us.
The beauty of these blogging engines and CMS platforms is the lack of limitations and ease of manipulation that allows developers to implement rich content and 'skin' the site in such a way that with very little effort one would never notice what it is making the site tick all without limiting content and effectiveness.
I'm not sure what you guys think but this post is kind of funny, with the cucumber =)
Thank you for another essential article. Where else could anyone get that kind of information in such a complete way of writing? I have a presentation incoming week, and I am on the lookout for such information.
I like this very much. This is my great pleasure to visit your website and to enjoy your excellent post here. Thank you for sharing with us. I can feel that you spend much attention for this articles, as all of them make sense and are very useful for us.
I recently came across your blog and have been reading along.
I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading.Nice blog,I will keep visiting this blog very often.
Thanks for the article. I'm a complete newb to everything including Ruby but was able to follow along and where it differed from the current version of cucumber or Ruby it actually forced me how to find the info myself.
Anyway, thanks for the 'cast and I had and idea for your next one. How about a RoR plugin that stops spammers from clogging up your site? >.<
Thank you for another essential article. Thanks for the article. I'm a complete newb to everything including Ruby but was able to follow along and where it differed from the current version of cucumber or Ruby it actually forced me how to find the info myself.
I recently came acrossyour article and have been reading along.I want to express my admiration of your writing skill and ability to make readers read from the beginning to the end. best regards.
Some times, to a certain need, we have to convert PDF to image for enjoyment.
<a href="http://www.toptoys2trade.com/power-balance-wholesale-2-c-40/ "> power balance</a>
<a href="http://www.toptoys2trade.com/animal-rubber-bands-c-46/ ">animal rubber bands</a>
Thanks for sharing your article. I really enjoyed it. I put a link to my site to here so other people can read it. My readers have about the same interets
Discount Wholesale Electronics, Wholesale Cell Phones, Electronic Gadgets and More from the Best Dropship Wholesaler
this post is the beast .the information you have give is exactly what I am looking for. Thanks a lot for this. I hope you would keep on making posts like this.
Nice collections!!! great source….
Thanks for the post! ??
Thank you for bringing us this information, I truly did appreciate the good work.
I just sent this post to a bunch of my friends as I agree with most of what you’re saying here and the way you’ve presented it is awesome.
Wow, Cucumber is really impressive, I've been quite intimidated by the various Rails testing methodologies but this seems quite friendly.
Good article! Thank you so much for sharing this post.Your views truly open my mind.






