26 Sep '13, 8pm

Slides from my @rockymtnruby architecture talk: https://t.co/xBx2FEl7wf and here's the blog posts: #rmr13

If you are trying to test controllers under a Rails engine, you might come across this error: Failure/Error: get :index ActionController::UrlGenerationError: No route matches {:action=>"index", :controller=>"engine_name/controller_name"} Despite, setting up your routes, controller, and mount correctly, the tests cannot find your route. There are three possible solutions to this problem (the third is my favorite). Solution 1: You can specify a use_route param in each of your controller spec get/post/put/delete calls. The use_route param goes inside of HTTP params and needs a value that matches your engine name in snake case. So if you want to do a GET to the index action of a PostsController located in a MyBlog engine, then your test would look like: it "does something..." do get :index, use_route: :my_blog ... end The down fall to this solution is that you have to specify ...

Full article: http://pivotallabs.com/writing-rails-engine-rspec-control...

Tweets

Writing Rails engine rspec controller tests by ...

pivotallabs.com 16 Sep '13, 2pm

If you are trying to test controllers under a Rails engine, you might come across this error: Failure/Error: get :index Ac...

Petes Posts

petewentz.com 27 Sep '13, 10pm

pugcookies reblogged this from ahomeboyslife and added: Their sooooo cute when their animated!! Even cuter in real life!!!...

Why we don’t use OOCSS (but we should) via @piv...

pivotallabs.com 27 Sep '13, 2pm

I recently had the opportunity to pair with Nicole Sullivan (of OOCSS fame) for a few days on my current project. I learne...

Really like this overview of rspec strategies:

pivotallabs.com 17 Sep '13, 6pm

These are some tricks, tips, strategies, lessons learnt from a year of working with RSpec on Rails projects. Rails convent...

"Bullets kill people, even PowerPoint bullets" ...

thinkrelevance.com 24 Sep '13, 5am

Documenting Architecture Decisions Tags: agility and architecture Context Architecture for agile projects has to be descri...

懐かしい - Riding Rails: Merb gets merged into Rail...

weblog.rubyonrails.org 20 Sep '13, 6am

Merb gets merged into Rails 3! Posted by David , December 23, 2008 @ 11:47 am It’s christmas, baby, and do we have a prese...

@kerrizor I don't think there's anything in min...

api.rubyonrails.org 29 Sep '13, 6pm

Test numeric difference between the return value of an expression as a result of what is evaluated in the yielded block. a...

Hey NYC, SF, and London: If you love UX and agi...

pivotallabs.com 25 Sep '13, 12am

Pivotal Labs is a recognized leader in agile software development practices. We build consumer and enterprise web and mobi...

Google Launches Hashtag Search, Shows Google+ P...

searchengineland.com 25 Sep '13, 6pm

The integration of Google+ across Google properties continues in a big way today with the launch of hashtag search. Simply...

Ember vs Angular - Templates - Pivotal Labs

pivotallabs.com 25 Sep '13, 3am

Over the last couple of weeks I’ve been fortunate enough to play around in both Ember and Angular . Having spent the last ...

Fast tests in Ruby on Rails

rubyflow.com 01 Oct '13, 3pm

Fast tests in Ruby on Rails Posted by manualwise on October 01, 2013 — 0 comments Developers need to be able to run tests ...

server side #rails validations

guides.rubyonrails.org 26 Sep '13, 11am

Database constraints and/or stored procedures make the validation mechanisms database-dependent and can make testing and m...