Projects tagged ‘rspec’ and ‘tdd’


[3 total ]

0 Users

A Collection of My finest small PluginsMore of my plugins can be found at http://github.com/grosser Will Paginate Acts As SearchableIntegrate will_paginate with acts_as_searchable ... [More] Movie.paginate_by_fulltext_search(params'q',:page=>params:page,:per_page=>1) script/plugin install http://small-plugins.googlecode.com/svn/trunk/will_paginate_acts_as_searchable/ piston import http://small-plugins.googlecode.com/svn/trunk/will_paginate_acts_as_searchable/ vendor/plugins/will_paginate_acts_as_searchablePost README [Less]
Created about 1 year ago.

0 Users

Nelson analyzes a model in your Rails project and provides you with the following: 1. a method to generate a mock object with all required fields supplied; this object can be a valid or invalid ... [More] instance of the model; you can specify attributes to error on; you can override field values. 2. a file with stub! and should_receive statements for class and instance methods that can be automagically parsed 3. output of methods that could not be parsed Nelson tries to take all the pain out of mocking ActiveRecord objects. [Less]
Created about 1 year ago.

0 Users

JsSpec tries to bring behaviour driven development to JavaScript by somewhat mimicking what rspec does in ruby. with (Spec) { describe("A newly created Tic-Tac-Toe", function() { with (this) { ... [More] before("each", function() { this.game = new TicTacToe(); }); it("should have 9 empty cells", function() { this.game.cells.should(have(9, "items")); this.game.cells.each(function(cell) { cell.should( be(undefined) ); }); }); it("should have 0 players", function() { this.game.should( have(0, "players") ); }); }}); } Specs.run();Real docs coming soon, look at the README file in the downloadable package or the running example in spec/index.html [Less]
Created about 1 year ago.