• This repository has been archived on 16/Aug/2023
  • Stars
    star
    756
  • Rank 60,056 (Top 2 %)
  • Language
    Ruby
  • License
    Other
  • Created over 16 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

RSpec extension library for Ruby on Rails

Spec::Railsยถ โ†‘

DESCRIPTION:ยถ โ†‘

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.

This is the repository for rspec-rails-1.x. If youโ€™re looking for rspec-rails-2 for rails-3, see github.com/rspec/rspec-rails.

FEATURES:ยถ โ†‘

  • Use RSpec to independently specify Rails Models, Views, Controllers and Helpers

  • Integrated fixture loading

  • Special generators for Resources, Models, Views and Controllers that generate RSpec code examples.

VISION:ยถ โ†‘

For people for whom TDD is a brand new concept, the testing support built into Ruby on Rails is a huge leap forward. The fact that it is built right in is fantastic, and Ruby on Rails apps are generally much easier to maintain than they might have been without such support.

For those of us coming from a history with TDD, and now BDD, the existing support presents some problems related to dependencies across examples. To that end, RSpec on Rails supports 4 types of examples. Weโ€™ve also built in first class mocking and stubbing support in order to break dependencies across these different concerns.

MORE INFORMATION:ยถ โ†‘

See Spec::Rails::Example for information about the different kinds of example groups you can use to spec the different Rails components

See Spec::Rails::Matchers for information about Rails-specific expectations you can set on responses and models, etc.

INSTALLยถ โ†‘

More Repositories

1

rspec

Behaviour Driven Development framework for Ruby
Ruby
1,739
star
2

rspec-tmbundle

Textmate bundle for RSpec.
Ruby
199
star
3

stubble

Tools to make stubbing Ruby ORM models just a little bit easier
Ruby
46
star
4

jquery-websocket

Fork of http://code.google.com/p/jquery-websocket/
JavaScript
42
star
5

lein-expand-resource-paths

Leiningen 2 middleware that expands glob patterns in resource-paths in your project.clj file
Clojure
17
star
6

railsconf2010-app

story card app for railsconf 2010 demo
Ruby
15
star
7

rspec-stories

RSpec's Story Runner (formerly RBehave, presently replaced by Cucumber)
Ruby
9
star
8

rspec-extensions

Experimental features that may or may not end up in rspec proper someday.
9
star
9

chirb-mastermind

Mastermind exercise for CHIRB meeting on March 2nd, 2009
Ruby
8
star
10

sicp-exercises

exercises for SICP study group
Scheme
8
star
11

rsla

materials for talk at rsla
Ruby
4
star
12

spec_server

spec_server extracted from rspec-rails-1.2.6
3
star
13

merged_default_scopes

Modifies default_scope to merge conditions in successive calls. Also adds clear_default_scope method. Co-authored with Brian Tatnall. This has been merged into rails-3 (not released yet).
Ruby
3
star
14

acts-as-savable

Extends an ActiveRecord model so that it can read from a view, and save to a table.
Ruby
2
star
15

rspec_for_generators

RSpec 2 matchers, helpers and utils for writing generator specs
Ruby
1
star
16

will_paginate_failing_spec

Test app proving a failing spec with will paginate collection
Ruby
1
star
17

devnation2010

Ruby
1
star
18

wcrc

source code for BDD session at Windy City Rails on 12 Sept, 2009
Ruby
1
star
19

calva-leiningen-test-oddity

Demo of odd behavior running tests in a REPL in VSCode+Calva+Leiningen
Clojure
1
star
20

functionalr

Make Ruby even more functional
Ruby
1
star