rspec-rails-examples - RSpec cheatsheet & Rails app: Learn how to expertly test Rails apps from a model codebase

  •        80

A small yet comprehensive reference for developers who want to know how to test Rails apps using RSpec. Here you'll find in-depth examples with detailed documentation explaining how to test with RSpec and related testing gems, which you can then apply to your own projects.

https://github.com/eliotsykes/rspec-rails-examples

Tags
Implementation
License
Platform

   




Related Projects

rspec-rails - RSpec extension library for Ruby on Rails

  •    Ruby

Behaviour Driven Development for Ruby on Rails. rspec-rails is an RSpec extension that allows you to drive the development of Ruby on Rails applications with RSpec.

rails-4-1-rspec-3-0 - Code samples for Everyday Rails Testing with RSpec, Rails 4

  •    Ruby

Sample Rails 4.1.x application for Everyday Rails Testing with RSpec: A Practical Approach to Test-driven Development by Aaron Sumner. This repository demonstrates incremental testing of an existing application, starting with an untested codebase and working through model, controller, and feature specs. Each chapter's progress has a specific branch in this repository. See chapter 1 of the book for details.

rspec_rails_4 - Everyday Rails Testing with RSpec (Rails 4.0 Edition)

  •    Ruby

Looking for the Rails 3.2 version? Please see https://github.com/ruralocity/everyday_rails_rspec_rails_3_2. Sample Rails 4.0.x application for Everyday Rails Testing with RSpec: A Practical Approach to Test-driven Development by Aaron Sumner. This repository demonstrates incremental testing of an existing application, starting with an untested codebase and working through model, controller, and feature specs.

email-spec - Collection of RSpec/MiniTest matchers and Cucumber steps for testing email in a ruby app using ActionMailer or Pony

  •    Ruby

A collection of matchers for RSpec, MiniTest and Cucumber steps to make testing emails go smoothly. This library works with ActionMailer and Pony. When using it with ActionMailer it works with ActiveRecord Mailer, and action_mailer_cache_delivery.

mongoid-rspec - RSpec matchers and macros for Mongoid.

  •    Ruby

The mongoid-rspec library provides a collection of RSpec-compatible matchers that help to test Mongoid documents. This gem is compatible with Mongoid 3, 4, 5 and 6.


rspec-rails - Rspec-2 for Rails-3

  •    Ruby

Rspec-2 for Rails-3

spork - A DRb server for testing frameworks (RSpec / Cucumber currently) that forks before each run to ensure a clean testing state

  •    Ruby

Spork is Tim Harper's implementation of test server (similar to the script/spec_server that used to be provided by rspec-rails), except rather than using the Rails constant unloading to reload your files, it forks a copy of the server each time you run your tests. The result? Spork runs more solid: it doesn't get corrupted over time, it can work with any ruby framework, and it properly handles modules and any voodoo meta programming you may have put in your app. Spork runs on POSIX systems using fork. It also runs on windows by pre-populating a pool of ready processes (referred to here as the “magazine” strategy).

rspec - RSpec meta-gem that depends on the other components

  •    Ruby

rspec is a meta-gem, which depends on the rspec-core, rspec-expectations and rspec-mocks gems. Each of these can be installed separately and loaded in isolation using require. Among other benefits, this allows you to use rspec-expectations, for example, in Test::Unit::TestCase if you happen to prefer that style. Conversely, if you like RSpec's approach to declaring example groups and examples (describe and it) but prefer Test::Unit assertions and mocha, rr or flexmock for mocking, you'll be able to do that without having to install or load the components of RSpec that you're not using.

steak - The delicious combination of RSpec and Capybara for Acceptance BDD

  •    Ruby

You're now set up! Note that Steak is the only dependency you really need, you can safely remove any reference to capybara, rspec-rails or rspec from your Gemfile, they will be included by Steak. Also note that, unless previously executed, Steak will run the RSpec generator so you don't need to invoke it.

parallel_tests - Rails: 2 CPUs = 2x Testing Speed for RSpec, Test::Unit and Cucumber

  •    Ruby

Rails: 2 CPUs = 2x Testing Speed for RSpec, Test::Unit and Cucumber

rspec-expectations - Rspec-2 expectations (should and matchers)

  •    Ruby

Rspec-2 expectations (should and matchers)

expertiza - Expertiza is a web application through which students can submit and peer-review learning objects (articles, code, web sites, etc)

  •    Ruby

Expertiza is a web application where students can submit and peer-review learning objects (articles, code, web sites, etc). It is used in select courses at NC State and by professors at several other colleges and universities. The expertiza environment is already set up in NC State's VCL image "Ruby on Rails". If you have access, this is quickest way to get a development environment running for Expertiza. See the Google doc on setting up the Expertiza development environment.

rspec-retry - retry randomly failing rspec example

  •    Ruby

RSpec::Retry adds a :retry option for intermittently failing rspec examples. If an example has the :retry option, rspec will retry the example the specified number of times until the example succeeds. You can call ex.run_with_retry(opts) on an individual example.

fudgestudios-bort

  •    Ruby

A base rails app featuring: RESTful Authentication, Will Paginate, Rspec & Rspec-rails, Exception Notifier, Asset Packager, Cap Recipe (multi-stage). Put together by Fudge to remove the need for boring project setup.

parallel_tests - Rails: 2 CPUs = 2x Testing Speed for RSpec, Test::Unit and Cucumber

  •    Ruby

Speedup Test::Unit + RSpec + Cucumber + Spinach by running parallel on multiple CPU cores. ParallelTests splits tests into even groups (by number of lines or runtime) and runs each group in a single process with its own database. ParallelTests uses 1 database per test-process.

rspec-puppet - RSpec tests for your Puppet manifests

  •    Ruby

Note for ruby 1.8 users: while rspec-puppet itself supports ruby 1.8, you'll need to pin rspec itself to ~> 3.1.0, as later rspec versions do not work on old rubies anymore. When you start out on a new module, create a metadata.json file for your module and then run rspec-puppet-init to create the necessary files to configure rspec-puppet for your module's tests.

transpec - The RSpec syntax converter

  •    Ruby

Transpec is a tool for converting your specs to the latest RSpec syntax with static and dynamic code analysis. With Transpec you can upgrade your RSpec 2 specs to RSpec 3 in no time. It supports conversions for almost all of the RSpec 3 changes – not only the expect syntax. Also, you can use it on your RSpec 2 project even if you're not going to upgrade it to RSpec 3 for now.

rails3-devise-rspec-cucumber

  •    Ruby

An example Rails 3.2 app with Devise and RSpec and Cucumber. With a tutorial.

Webrat - Ruby Acceptance Testing for Web applications

  •    Ruby

Webrat helps to write expressive and robust acceptance tests for a Ruby web application. It supports multiple Ruby web frameworks like Rails, Merb and Sinatra. It also supports popular test frameworks like RSpec, Cucumber, Test::Unit and Shoulda.

rspec_api_documentation - Automatically generate API documentation from RSpec

  •    Ruby

Generate pretty API docs for your Rails APIs. Check out a sample.






We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.