07 Apr '13, 10am

Using Selenium with Webrat and Cucumber | BDDCasts - BDD Screencasts with Cucumber, RSpec and Ruby on Rails

Using Selenium with Webrat and Cucumber | BDDCasts - BDD Screencasts with Cucumber, RSpec and Ruby on Rails

In episode #136 of Railscasts , Ryan Bates showed us how to quickly turn a regular form into one that is submitted with Ajax. In this episode you can see how to write a feature to test this functionality using Selenium. Cucumber is great for Rails integration testing because it exercises the entire Rails stack, starting from the route mapper, through the controller, the models, right down to the database. To achieve this, it uses Webrat which accesses your application very close to how a browser would do it. Webrat however is not a browser. When you ask it to fetch a URL from your application, it actually takes a shortcut by instantiating your controllers and passing them a mock HTTP request. This method however, does not let you test the client-side AJAX functionality of your application. One solution, shown in this episode, is to use a full featured browser such as Firef...

Full article: http://bddcasts.com/series/tools/episodes/using-selenium-...

Tweets

@fimbul11 gem i rspec こんなん https://t.co/fpOM1pq6ng

jp.rubyist.net 06 Apr '13, 8am

spec -fs array_spec.rb Array when empty - should be empty - should size 0 Array when initialized with object - should not ...

What's New in Edge Rails #64

afreshcup.com 08 Apr '13, 12pm

is Mike Gunderloy's software development weblog, covering Ruby on Rails and whatever else I find interesting in the univer...

Using GDB to inspect a running Ruby process

robots.thoughtbot.com 07 Apr '13, 6am

April 5, 2013 jyurek ruby debugging unix processes Using GDB to inspect a running Ruby process This job shouldn’t be takin...

"XML is like violence - if it doesn’t solve you...

nokogiri.org 12 Apr '13, 5pm

Nokogiri::CSS::Tokenizer::ScanError Nokogiri::Decorators Nokogiri::Decorators::Slop Nokogiri::EncodingHandler Nokogiri::HT...

Best practices for open sourcing your rails app...

railsforum.com 13 Apr '13, 3pm

Topic: Best practices for open sourcing your rails app and using git I want to: * Use git as my version control * Work in ...

API with Ruby on Rails: useful tricks

rubyflow.com 08 Apr '13, 4pm

API with Ruby on Rails: useful tricks Posted by gregolsen on April 08, 2013 — 0 comments I've just published a blog post a...

“SSH公開鍵の設置 - Ruby on Rails with OIAX”

oiax.jp 12 Apr '13, 2pm

Generating public/private rsa key pair. Enter file in which to save the key (/home/kuroda/.ssh/id_rsa):

Tip Tuesday: Did you know that you can run your...

edgeguides.rubyonrails.org 09 Apr '13, 4pm

$ rails generate scaffold HighScore game:string score:integer invoke active_record create db/migrate/20120528060026_create...

GitMinutes: Schneems talks Workflow and Rails I...

rubyflow.com 09 Apr '13, 4pm

GitMinutes: Schneems talks Workflow and Rails Issues Posted by schneems on April 09, 2013 — 0 comments Listen in on an all...

Migrating from a single Rails app to a suite of...

pivotallabs.com 07 Apr '13, 6am

In order to make day to day development easier, and to avoid the “where do migrations live…” conversation and top level Ra...

simple configuration login, not using gem

simple configuration login, not using gem

asciicasts.com 08 Apr '13, 9pm

The authentication we implemented in those episodes was fairly basic so in this episode we’ll add a couple of new features...

Check out this cool @raspberry_pi project to see how much energy you're using! Instructions included.

Check out this cool @raspberry_pi project to se...

element14.com 08 Apr '13, 3pm

My Pi is currently running a Python program named wattcher_cosm.py which is based on ladyada's original TaW wattcher.py pr...

Introducing Simple BDD via @pivotallabs

pivotallabs.com 31 Mar '13, 3pm

Simple BDD is a way to bring structured natural language BDD syntax into any test framework, but why is this necessary? Ha...

Integration testing in the absurd land of Rails...

guides.rubyonrails.org 15 Apr '13, 12pm

Testing support was woven into the Rails fabric from the beginning. It wasn’t an “oh! let’s bolt on support for running te...