GitXplorerGitXplorer
j

story-helper

public
5 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
1915ab2cb9717b4dd72f85fb0102fc3918de71a4

Update gemspec

jjtrupiano committed 16 years ago
Unverified
2ee99d6f235ba2c5aadb583a77a11fa33f682ae4

FIX: test:integrations --> test:integration

jjtrupiano committed 16 years ago
Unverified
af530272855107b32615f41154dedd1f7af36e7f

Updated Manifest and gemspec.

jjtrupiano committed 16 years ago
Unverified
0f9940a8e17517e166d0aa1031495e9455a2cafc

Actually delete README.txt

jjtrupiano committed 16 years ago
Unverified
f7daee2dcd337e3b7bfc1b06960b0753f8a23c44

Updated README

jjtrupiano committed 16 years ago
Unverified
2719407bcec667c752c86c153fca48e833849b64

more tasks for more customization. added seed option. preserves existing db:load:stories task, but removes deprecated db:load_stories. also added file system asset purging (but no rake task

committed 16 years ago

README

The README file for this repository.

h1. story-helper

p. http://github.com/jtrupiano/story-helper

h2. DESCRIPTION

p. Provides very basic baseline for using direct Ruby to define your test data and test accessors. Still a work in progress, but something we use at SLS in lieu of fixtures. More details to come as this becomes more useful to others.

p. There's some information on the wiki regarding how to use it in conjunction with fixtures.

h2. FEATURES/PROBLEMS

  • not entirely DRY (requires you to define your accessors in addition to your test data -- this should be able to be automated)
  • could auto-convert existing fixtures
  • should only be used in conjunction with pre-built test databases (in other words, no dropping and recreating for each test case -- use DB transactions instead)

h2. SYNOPSIS

from RAILS_ROOT

  • storify .

Implement StoryHelper#purge_all_data and StoryHelper#load_all in lib/story_helper.rb

  • rake db:stories:load RAILS_ENV=____

h2. REQUIREMENTS

  • FIX (list of requirements)

h2. INSTALL

  • sudo gem install story-helper (stable version from RubyForge)
  • sudo gem install jtrupiano-story-helper (HEAD of the repo from github)

h2. LICENSE

(The MIT License)

Copyright (c) 2008 FIX

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.