incredible how you manage to always present stuff that I need at that very moment.
Really useful and helpful tips about pickle, table-diffs and debugging cucumber.
Each one was just what I need to improve ^^.
So thanks Ryan and keep going ^^
HINT:
WHEN you get
Word verification response is incorrect, please try again.
THEN enable scripts for recaptcha.net to submit your comment
AS it did not show up otherwise.
I think show me the page will come in very handy... Thanks for the tip! =)
thanks for this great screencast (again!).
I'm also borred with the paths.rb file, so I have added this:
http://gist.github.com/224038
So you can write: "When I go to the products page" and it'll automagically be converted to products_page method. Great right?
Great screencast Ryan! Thanks.
How did you reformat that table in textmate?
I haven't watched it yet, but SWEET!
Good choice!
Thanks Ryan.
Yeah ditto what @Tick said. Your psychic powers are uncanny. Thanks for this and all the other extremely useful episodes.
Thanks for the great tips in this episode - really timely (ok, stop reading our minds!).
The table reformat comes from Cucumber textmate bundle Command/Option '\'
(probably)
Hi Ryan,
thnx for another great episode...
....please give us more on BDD!
greez
@thibaud - did you try script/generate pickle paths ?
This adds mapping of expressions like 'the product's edit page' and even nested ones like 'the category's product's page'.
Cheers,
ian
Then show me the page
Didn't know about that - thanks! Sure woulda saved me a lot of debugging time.
I had to do this to get it working
config.gem 'ianwhite-pickle', :lib => 'pickle'
Pickle looks awesome.
I recently posted a similiar Gem called "Cucumber Factory" which shares a lot of ideas with Pickle but focuses on very natural syntax.
Check it out on GitHub:
http://github.com/makandra/cucumber_factory
Yes, its advanced, but you teach us during 186 episodes and that's a lot! Thanks for your work! Always a good motivation to continue studying...
Nevermind my last comment. I seem to have missed the migration to gemcutter.
I love using Pickle. It really speeds up writing Cucumber features and lets me focus on the real issue and not waste time on setup. Check out the Pickle readme for more detail on what this gem can do. I've also written a post that provides some more detail too: http://rubyflare.com/2009/10/28/pickle-my-cucumber/
I wonder if Rails-based website can be protected more or less automatically from all this alive "Capture breakers" who get live links from Railcasts to UGG boots, Blackberry cases, Weight loss and all other crap? Soon we can expect arrival of "Free Viagra / Cialis, ...", "Cheap pharmacy", ...
What makes me mad is that all these people care is to get real <a href>search term</a> which is just a basic SEO.
Does pickle have a way to delete all records?
eg
Givin I have no xx records?
@stu Pickle doesn't have anything built to handle the deletion of records but it isn't hard to create your own step definition using Pickle to achieve this: http://gist.github.com/224945
As usual, Great cast!!
I tried to convert the table into lists as follows in the view:
<ul id="products">
<% @products.each do |product| -%>
<li><%= h(product.name) %></li>
<li><%= number_to_currency product.price %></li>
<% end -%>
</ul>
with step definition:
Then(/^I should see products table$/) do |expected_table|
html_table = element_at("#products").to_table
#html_table.map! { |r| r.map! { |c| c.gsub(/<.+?>/, '') } }
expected_table.diff!(html_table)
end
But I could not figure out the error. Whats wrong with my setp def?? plz.
Is there any way to control the junk posts like above? Please do something... these guys are annoying.
By the way-Great episode and thank you for that.
Thanks Ryan for great Casts!
They truly open RoR for many people.
I think, you should stop presenting commentor's name as a link to provided site. This will repel all these buggers with their boots and replicas.
UGG boot seller: You are doing yourself a bad SEO here. In order to get any benefits from Link, it should be:
a) relevant to the rest of content on the page
b) people that read this content should want to read more and click your link
None of this is happening here, why do you keep posting here? Spend your time reading about SEO and do the better job somewhere else more relevant to boots and replicas.
Pickle doesn't work form me!! I even download the episode source code and when i run "cucumber features", cucumber doesn't recognice the pickle steps!! Any suggestion?
@dani have you performed a ruby script/generate pickle? This will append pickle setup to features/support/env.rb and create a new file at features/step_definitions/pickle_steps.rb
Can you do a railscast on how to block Ugg boot comment spam? That would be very helpful ;-)
When I went from webrat 0.6.0 to 0.5.3 I didn't get
the undefined method `css_search' for Webrat::XML:Module (NoMethodError) (eval):2:in `table_at' error.
I saw a post on the IRC channel saying they removed css_search from webrat???
http://irclogger.com/cucumber/2009-10-28#1256763887
cheers
Ryan your final tip was truly Steve Jobs-esque! Saving the best till last ;-)
Great episode as ever.
Thanks for sharing, guys! You've done a good job indeed. To tell the truth, it took me much time to comprehend this information and to study all the codes thoroughly. I've learned much about table diffs indeed:) I like the intelligible way you present information so that it became comprehensible, transparent and accessible for ordinary people as I am. Well done!
Ryan, thanks for the video on this.
But how about addressing this with has many through? Right now, I am trying to make an account sign up form. My app has an Account which has_one company, Company has many users, and Account has many users through Company. I want this form to have fields for the Account, the Company, and the User. Rails is giving me all sort of problems trying to do this http://pastie.org/780854 . After seeing tons of people with the same question in forums with no answers, and not too much help in IRC, I think this would be a great talking point.
Thanks, let me know
Initial setup problem was only a single quote issue:
Given a user exists with first_name: 'Jason'
this wouldn't work for me and I pulled my hair out just to find out that all I needed was double quotes:
Given a user exists with first_name: "Jason"
I submitted a lighthouse ticket:
http://is.gd/8QcDx
Great screencast again.
The table_at does not seem to work anymore here.
For those of you wondering about aligning the table, it's a feature that comes with the textmate bundle. The most recent version does not support CMD+OPT+\ - instead hit CMD+S to save and align your tables.
Because Pickles (Cucumbers) were probably the first ones made...so it get its own name...and everything else is called pickled because they can't be called Pickles, but they are still referring to how they were made...the same process as reg. Pickles.
Because Pickles (Cucumbers) were probably the first ones made...so it get its own name...and everything else is called pickled because they can't be called Pickles, but they are still referring to how they were made...the same process as reg.
@Philipp Kursawe
Cucumber deprecated table_at and element at so do this:
html_table = tableish("table#products tr", "td" ).to_a
You're basically telling cucumber it is a table with product id, tr has header and td for columns.
And also looks like you don't need to escape symbols anymore.
GL.
Have you ever bought a cucumber that doesn't have soft white seeds in the middle? I think they do need fertilising and that, perhaps, older varieties of cucumber did tend to become bitter.
<a href="http:/www.worldclik.com/">SEO</a>
Have you ever bought a cucumber that doesn't have soft white seeds in the middle? I think they do need fertilising and that, perhaps, older varieties of cucumber did tend to become bitter.
Have you ever bought a cucumber that doesn't have soft white seeds in the middle? I think they do need fertilising and that, perhaps, older varieties of cucumber did tend to become bitter.
<a href="http:/www.worldclik.com/">SEO</a>
it is interesting and informative article. This has been very helpful understanding a lot
of things. I’m sure a lot of other people will agree with me.
Its nice stuff.You done a great job.Thanks for sharing with us.Keep it up...
Is there anywhere this information is available further? Such as a book or e-book?
we provide our buyers with an efficient and manageable procurement process covering every phase of the international supply chain and
streamlining trade channels. Also welcome wholesaling, feedback now!
it is really a great article. Thanks
<a href=" http://www.maxexercises.com" > Wholesale cheap NHL, NFL,MLB, NBA jersey for sale </a>
This is an excellent read, and some very helpful code. Thanks for that
Cloud is a symbol of a weather, usually in a weather report they always use a cloud's picture as a symbol of any kinds of weather.
Cloud is a symbol of a weather, usually in a weather report they always use a cloud's picture as a symbol of any kinds of weather.
Nice post.Thank you for taking the time to publish this information very useful!
I’m still waiting for some interesting thoughts from your side in your next post thanks
I really like how the theme of the website and how well you organized the content. It's a marvelous job I will come back and check you out sometime.
the code is easy to understand.thanks for your efforts for writing this code
Great article, I think you covered everything there. . . I would say freelancing is quite hard especially if you are not used to working on your own, can be quite hard to motivate yourself also. . . we all know what it is like to stare at the monitor.
Your psychic powers are uncanny. Thanks for this and all the other extremely useful episodes.
Very different from anything I'm used to, but certainly appears to simplify things.
This is an excellent read, and some very helpful code. I really like how the theme of the website and how well you organized the content.
I came to your article from another article and am really interested in this learning about this. , I feel strongly about information and love learning more on this. If possible, as you gain expertise, It is extremely helpful for me. would you mind updating your blog with more information?
I have always liked Outdoor movies, a child standing at the window, looked out from home to the following. Will be able to see the staff busy figure, a huge white cloth has a child hang up and soon will be able to see the movie.
<a href="http://www.breitlingreplicawatches.net/">breitling replica</a>
Some times, to a certain need, we have to convert PDF to image for enjoyment.
What about the book? Is there anywhere this information is available further?
Discount Wholesale Electronics, Wholesale Cell Phones, Electronic Gadgets and More from the Best Dropship Wholesaler
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
I really like the theme of the website and how well you organized the content. It's a great job thanks
I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept.
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
thanks dude, now you make it easy for me to understand and implement the concept.
I was very encouraged to find this site. I wanted to thank you for these useful tips. I definitely savored every little bit including all the comments and I have you bookmarked to check out new stuff you post.
Very good post. Made me realize I was totally wrong about this issue. I figure that one learns something new everyday. Mrs Right learned her lesson! Nice, informative website by the way.






