rspec

RSpec - Behaviour Driven Development testing framework

There are different type of testing like unit testing, integration testing, functional testing etc.. Lets we talk about unit testing by using different testing tools and framework.

In ruby on rails there are two different way for testing.

1. Behaviour Driven Development (BDD)

2. Test Driven Development (TDD)

Behavior Driven Development (BDD):

RSpec - Behaviour Driven Development testing framework

There are different type of testing like unit testing, integration testing, functional testing etc.. Lets we talk about unit testing by using different testing tools and framework.

In ruby on rails there are two different way for testing.

1. Behaviour Driven Development (BDD)

2. Test Driven Development (TDD)

Behavior Driven Development (BDD):

Make it so with RSpec Macros

RSpec macros (like those in the fantastic Remarkable library) ease spec writing for repetitive tasks, but is that process more effort than it’s worth? No—it’s actually quite easy to write and include macros for your specs to do some of the standard heavy lifting.

This is a great resource to get started with how to write the actual macros (or custom matchers) themselves.

Using Git Submodules for Shared Rails Components

In some cases you may have the need to run multiple Rails applications with shared functionality. While Rails 3 promises to bring “mounting apps in apps” and the ability to make the whole process simple, for now we’re stuck in the real world. However, it is possible to share components. This post will walk you through how to set up shared components that live in multiple Rails applications at once and even run specs properly.

A few notes before we begin:

Syndicate content