Projects tagged ‘rails’ and ‘rspec’


Jump to tag:

Projects tagged ‘rails’ and ‘rspec’

Filtered by Project Tags rails rspec

Refine results Project Tags ruby (5) plugin (2) bdd (2) tdd (2) mocking (1) mock (1) scaffold_resource (1) tests (1) fixtures (1) ec2 (1) rest (1) translate (1)

[7 total ]

0 Users

When you testing or specing a Rails app and trying to avoid database hits, the process of creating a mock model objects with all the required columns and values stubbed can be tedious. If you have ... [More] gone to the trouble of creating fixture files for you model specs then these can be reused for the controller, (functional tests), view and helper specs without the performance hit of the accessing the database. This is where mocked_fixtures comes in. For example in a spec where you have fixtures :peopleyou can replace with mock_fixtures :peopleand use the mocked models loaded with the fixture values like this @joe = mock_people(:joe)presuming you have a fixture labelled 'joe'. You get backed a mock object with all attribute methods stubbed out with the values that were in the fixture. [Less]
Created 12 months ago.

0 Users

a customized version of rails scaffold resource geared for use with rspec
Created about 1 year ago.

0 Users

A bundle of useful behaviors to dry up your specs
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

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

Rails SimpleDB Task List (Implemented with Amazon Web Services)This project shows a simple implementation of a task list using the following technologies: Ruby on Rails 2.02 Amazon SimpleDB Deployed ... [More] on Amazon EC2 No local database is used. No MySQL or sqlite. See the Setup for installation instructions. You will need an Amazon Web Services account. This is a rather simple project, but I think it does a decent job in demonstrating the power of handing off infrastructure to third-party utility computing services (clouds) like EC2, S3, SQS, and SimpleDB. It would be trivial to scale this application with a little bit of resource caching (calls to Amazon) and an observer. You could deploy it on n servers (in fact there are scripts that will automatically drop in new EC2 instances based on CPU load) without any concerns over database clustering. Naturally you still need to develop with data integrity in mind, and ActiveResource has no where near the attention of ActiveRecord to date, so it's not a replacement for your typical relational DB setup in most instances. Next Steps:Implement a proper caching layer at the controllers. Put a decent UI on it. Replace the proxy with direct calls to SimpleDB (we're marshalling objects twice right now). Put together the cap recipes for EC2 deployment. - Dave Rapin [Less]
Created about 1 year ago.

0 Users

rspec book cnThe purpose of this project is doing some translate Rspec official Document into Chinese. Additionaly we will collect some more interesting posts of Rspec, and tarnslate them(if en). ... [More] Our workhttp://code.google.com/p/rspec-cnbook/wiki/Overview How join the translate teamSend a mail to ysorigin Linkshttp://rspec.info/documentation/ [Less]
Created about 1 year ago.