15 Jun '13, 4am

Blogged: Stubbing Views in Rails Controller Testing #rails #ruby ... thanks! @goddamnhippie

TL;DR: Introducing blind , a gem to avoid view rendering in controller tests. The Situation I'm not a complete fan of full acceptance testing or heavy use of tools like Capybara. I really like controller unit testing and isolate collaborator objects if the case requires it. So, I was trying to test the next controller action: require_dependency 'catalog' class ProductsController < ApplicationController def index @products = Catalog.search params[:category], params[:query] end end I set a simple test and isolate the collaborator class with mocha : require 'test_helper' class ProductsControllerTest < ActionController::TestCase test 'search products catalog' do products = stub Catalog.stubs(:search).returns products get :index assert_equal products, assigns(:products) end end Then, ran it: $ ruby -Itest test/controllers/products_controller_test.rb And BOOM: # Running tests: 1...

Full article: http://www.frodsan.com/stubbing-views-rails-controller-te...

Tweets

tutorial "User Authentication with Rails, RSpec...

larsgebhardt.de 14 Jun '13, 8pm

It handles multiple functions. At first we use the rails helper functions to find a a user with the entered email and pass...

выложил слайды доклада "архитектурные практики ...

speakerdeck.com 15 Jun '13, 7am

Архитектурные практики в rails by Mokevnin Kirill Published June 15, 2013 in Programming Mokevnin Kirill 1 Presentation St...

Learn Ruby on Rails

sitepoint.com 14 Jun '13, 7am

Ruby on Rails is the web development framework of the moment, powering Gitub, Twitter, Hulu and many more successful apps ...

#freelance jobs: Website development similar to...

freelancer.com 13 Jun '13, 6pm

Looking for website developers (preferably in my local area - India but I am open for outside as well) to create a website...

#UK [contract] Ruby on Rails Developer at ✔ #jobs

contractjob.net 14 Jun '13, 10pm

Ruby on Rails Developer/Ruby on Rails Consultant/Ruby on Rails Engineer/Software Engineer/Senior Ruby Developer/HTML/CSS/J...

Episode #379: Heroku Ruby 2.0, Rails LTS, Aweso...

ruby5.envylabs.com 18 Jun '13, 2pm

June 14th, 2013 Rails 4.0 rc2, Understanding the GIL, Font Awesome Rails, String Inquirer, and gist dep are all featured i...

E-COMMERCE: activemerchant activated for ruby o...

freelancer.com 14 Jun '13, 8am

Project Description: For an existing application with activemerchant in test mode need activemerchant put in production mo...

#Job Skills Required Ruby On Rails PHP Linux by...

freelancer.com 14 Jun '13, 9am

Skills Required Ruby On Rails PHP Linux We are looking for a highly qualified self-motivated individual to work on our soc...

Ruby on Rails: Too Simple, or Just Simple Enough?

blogs.plos.org 18 Jun '13, 4pm

PLOS recently launched ALM Reports , implemented as a Ruby on Rails (RoR) app. I’m one of two engineers who implemented th...

Ruby on Rails: Too Simple, or Just Simple Enoug...

blogs.plos.org 18 Jun '13, 4pm

PLOS recently launched ALM Reports , implemented as a Ruby on Rails (RoR) app. I’m one of two engineers who implemented th...

Bitcoin, the Two-and-a-Half Party Model, and Ne...

paymentsviews.com 16 Jun '13, 3pm

One of the immediate applications for Bitcoin and the math-based currencies that are emerging in its wake is its potential...

Amazing List || 2013 Ruby on Rails Reading List...

blog.xdite.net 09 Jun '13, 10am

2013 Ruby on Rails Reading List Jan 30th , 2013 | Comments Here are the reading marterials I recommend in 2013: Basic If y...

Coding for women: riding the Rails with Ruby

Coding for women: riding the Rails with Ruby

citizenj.edgeqld.org.au 13 Jun '13, 5am

Adrian Smith from Ennova, a company that uses Ruby to develop and customise web applications for projects said, “Rails Gir...