19 May 2013

The Ruby Reflector

Topic

Test

  Source Favicon
Email

Another good case is a Test handler to be used in a test environment. A Test handler would be a simple and effective replacement for all the stubs and mocks across our application spec suite. Also, it will ensure no real socket connection is performed outside our application when our test suite is running.

Non-Deep querying

The support for Non-Deep queries is another long awaited feature. You can now skip deep queries for thin providers passing the `:referral => false` option. …

simonecarletti.com Read
  Source Favicon
By James Mead of Blog - James Mead 2 months ago.
Email

Make auto-activation of Test::Unit integration more resilient. This change is specifically to cope with the nasty re-defining of classes that is done by the minitest-spec-rails gem. Fixes issue #143 . Thanks to @ tubaxenor for reporting.

Safer restoration of stubbed method visibility. Fixes issue #141 . Thanks to Aman Gupta .

Ensure Mockery instance gets reset even if exception raised. Fixes issue #144 .

Adapt Mocha acceptance tests …

blog.floehopper.org Read
  Source Favicon
By James Mead of Blog - James Mead 4 months ago.
Email

As I mentioned in my previous post , there's been some recent confusion over which versions of Mocha are compatible with which versions of Rails . In this post, I explain how to use Mocha with Rails and Test::Unit.

Unfortunately due to Rails relying on Mocha & Test::Unit internals, there is a problem with using recent released versions of Rails with the latest version of Mocha and recent versions of the Test::Unit gem . You may see errors like these:

blog.floehopper.org Read
  Source Favicon
By Brian Landau of Viget.com Blogs 5 months ago.
Email

…'spec/factories' g.assets false g.helper false end

end end

Here, we're telling Rails when generating models, controllers, etc. for your engine to use RSpec and FactoryGirl, instead of the default of Test::Unit and fixtures

After this, you can start writing specs with FactoryGirl factories and integration specs ( inside the spec/features directory ) with Capybara. Have fun testing!

viget.com Read
  Source Favicon
By Brian Landau of Viget.com Blogs 5 months ago.
Email

…'spec/factories' g.assets false g.helper false end

end end

Here, we're telling Rails when generating models, controllers, etc. for your engine to use RSpec and FactoryGirl, instead of the default of Test::Unit and fixtures

After this, you can start writing specs with FactoryGirl factories and integration specs ( inside the spec/features directory ) with Capybara. Have fun testing!

viget.com Read
  Source Favicon
By Joshua Timberman of Opscode Blog 6 months ago.
Email

The next important change is that the Cheffile included with Test Kitchen no longer specifies the apt , yum , build-essential , git and rvm cookbooks. The existence of these cookbooks in the Cheffile caused " Cheffile and Cheffile.lock are out of sync" errors from Librarian when Test Kitchen assembled the cookbooks. Also, the versions of those cookbooks were pinned to releases from several months ago, which had their own bugs fixed. Test Kitchen has its …

opscode.com Read
  Source Favicon
By Mike Gunderloy of A Fresh Cup 6 months ago.
Email

companion gem .

html-pipeline: Chainable Content Filters - New gem from GitHub.

Testacular - Test runner for JavaScript with built in Mocha and Jasmine support, among other things.

The Silver Searcher - "An attempt to make something better than ack, which itself is better than grep."

afreshcup.com Read
  Source Favicon
By Leigh Shevchik of New Relic 7 months ago.
Email

Join us this Saturday, October 27, for pyArkansas . Now in its second year, pyArkansas is a free one day conference for Arkansas and the surrounding region. Anyone interested in learning about all things Python is invited to come listen, give presentations and meet other members of the Python community.

Sessions include:

* Getting Started with GeoDjango

* An Introduction to Test Driven Development in Python

* REST-ful APIS with Flask and MongoDB

* Python for Humans

newrelic.com Read
  Source Favicon
By Mike Gunderloy of A Fresh Cup 7 months ago.
Email

Help us Test the Social API with Facebook Messenger for Firefox - I would, if I used Facebook. Here's to Tent integration.

chruby - Another simple alternative for switching ruby versions on the fly.

Benchmark Your Bundle - Simple script to figure out which of your gems is taking the longest to load.

jq - "Like sed for JSON data."

Coalmine - Another cloud-based exception tracking service.

JavaScript for Bootstrap Form…

afreshcup.com Read
  Source Favicon
On ZURB 7 months ago.
Email

You Have to Test For Every Device

This is precisely why responsive design makes sense. You can't possibly test for every device and browser out there. After all, HTC has some 12 different screen size and resolution combinations on Android. And that's just one product line! What about Acer, Motorola, LG, Sony ... well, you get the idea. Conservatively, there are some 6,500 web-enabled devices out there.

We keep small sampling around the office that we test — …

zurb.com Read