small medium large xlarge

Generic-user-small
15 Jun 2014, 14:30
Eugene Alkhouski (1 post)

I wonder what is the reason to use comma in that regex /\$[,\d]+\.\d\d/ to verify that the price formatted correctly.

And why I should use assert_select '#columns #side a' in store_controller.rb. I think selection like this '#side a' is enough. Thanks

Generic-user-small
20 Jan 2015, 16:00
Matthew Jachimstal (1 post)

The comma is to account for prices greater than 999.99. The formatting helper will put a comma to separate the thousands.

It took me a minute of thinking to figure it out.

  You must be logged in to comment