24 April 2014

The Ruby Reflector

Topic

RSpec

  Source Favicon
By livelessons of Videos related to 'Ruby on Rails demo' 9 months ago.
Email

Sass; behavior-driven development ( BDD) with Capybara & Rspec; better automated testing with Guard & Spork; roll your own authentication with has_secure_password; and an introduction to Gherkin & Cucumber. These focused video lessons help you learn crucial new skills fast— and put them to work immediately! Watch top Rails developer Michael Hartl guide you through building a complete application using today's best practices for MVC and REST design, layout, …

youtube.com Read
  Source Favicon
Email

The testing syntax itself is very block heavy. But other than that, it follows RSpec's syntax almost exactly.

The category method: Starting with the desired end state

We'll start in the same place as we would in Ruby. Given a string ("example string"), we expect to be able to call a method to get a reversed version of that string ("gnirts elpmaxe"): // NSString_ReversedSpec.m

# import "NSString+Reversed.h"

SpecBegin(NSString_Reversed)

describe(@"NSString+Reversed", …

robots.thoughtbot.com Read
  Source Favicon
By Julian Dunn of Chef Blog 1 month ago.
Email

…, I need to explicitly include all libraries in this cookbook, since RSpec by default is only going to load tests in the spec directory.

I've also set up spec_helper to run any ChefSpec tests against resources in my cookbook proper, so I can run unit tests for everything just with one command.

I hang my head in shame before Martin Fowler if I screwed up the definitions of "mock" and "stub", but I think I got it right.

Concluding Remarks…

opscode.com Read
  Source Favicon
By Giles Bowkett of Giles Bowkett 1 year ago.
Email
  Source Favicon
By chris of Binary Code over 1 year ago.
Email

My Rspec specs suddenly stopped working with the following error: Failure/Error: Unable to find matching line from backtrace DRb::DRbConnError: druby://127.0.0.1:8989 - #

Oddly, the first two tests were working, then the rest exploded. Turns out the culprit was raising an exception in the initialize() method of the class being tested, like so: def initialize( account ) raise if !account.kind_of?( UserAccount ) ... end

The first two tests tested the exception state, like …

postal-code.com Read
  Source Favicon
By Mike Gunderloy of A Fresh Cup 1 month ago.
Email

Introducing EstimationParty - Google+ Hangout addon to allow teams to put together estimates and plan iterations.

Softcover - A publishing platform based on the Rails tutorial - Build and publish ebooks with media.

rails-mrap-seed - Hackathon seed project including Mongoid, HAML, Bootstrap, RSpec, and Capybara.

Luculent - Font family for developers with plenty of hinting and legible rendering at tiny sizes.

afreshcup.com Read
  Source Favicon
By sarah of the evolving ultrasaurus 3 months ago.
Email

Selenium, but it is slower than RackTest (default for RSpec testing). RSpec provides a nice way to specify an alternate driver when running Javascript tests, but configuration can be a little tricky. I got this working via this excellent blog post via Sarah Mei , who was pairing with me for the day.

I think it is important to actually understand the code that I copy/paste, so I took a little time to read up on the details which I've summarized below.

Favorite Testing Gems…

ultrasaurus.com Read
  Source Favicon
By Fabio Akita of RubyLearning Blog almost 2 years ago.
Email

…valores diferntes dependendo da localização escolhida atualmente. If we would add an Rspec spec to cover this behavior, it would look like this: describe Article do before(:each) do I18n.locale = :en @ article = Article.create title: "Hello World", body: "Test" I18n.locale = :"pt-BR" @article.update_attributes(title: "Ola Mundo", body: "Teste") end

context "translations" do it …

rubylearning.com Read
  Source Favicon
By James Schorr of RubyLearning Blog almost 2 years ago.
Email

…real-world progress can be made towards better securing code with the usage of tools/methods such as: Rspec and friends, TDD, BDD, etc.

Human Testing: sometimes nothing beats enlisting the help of others to pound away on our beloved projects. You'd be surprised by how many issues are found by this approach, often leading to cries of, "But users aren't supposed to do that!"

Non-technical users: enlist someone who can has a hard time finding the / key. This type of …

rubylearning.com Read
  Source Favicon
By Mike Gunderloy of A Fresh Cup 3 months ago.
Email

Support for Test Driven Devops - Using custom RSpec matchers to make sure you don't break configurations.

List of Languages that Compile to JS - There are too many of them.

Never Write a Web Scraper Again - A visual approach to scraping.

afreshcup.com Read