Sha256: 37dba70ab0a780f0a5a155b439873d6e8d76942a31c16824771437999028ad8e
Contents?: true
Size: 1.85 KB
Versions: 1
Compression:
Stored size: 1.85 KB
Contents
= JoinFix Tests JoinFix does not have an active test suite that can be run when installed via RubyGems, because, as you may expect, running the tests for joinfix requires that ActiveRecord can connect to a test database. Additionally, the tests depend on the 'gemdev' gem. If you want to run the tests, you need to do the following: * install gemdev ('gem install gemdev') * create the database and grant permissions to a test user * modify config.yml to reflect the database and test user These commands will create the database and grand permissions as needed, assuming you're using mysql on localhost. Log into 'mysql', then enter: create database joinfix; grant all on joinfix.* to 'ruby'@'localhost' identified by 'rubypass' Now you can run the test from the command line using: % rake test = Rails Tests JoinFix is intended to integrate with Ruby on Rails. I've set up a rails project for testing, complete with models, migrations, fixtures, and the appropriate tests. The rails tests require a '_development' and '_test' database to connect to. To setup the databases: * create the databases and grant permissions to a test user * modify rails/config/database.yml to reflect the databases and test user * migrate the table schema into the development database These commands will create the database and grand permissions as needed, assuming you're using mysql on localhost. Log into 'mysql', then enter: create database joinfix_development; grant all on joinfix_development.* to 'ruby'@'localhost' identified by 'rubypass'; create database joinfix_test; grant all on joinfix_test.* to 'ruby'@'localhost' identified by 'rubypass'; Subsequently you need to migrate the database specification into these tables and run the tests. From the command line, in the rails directory: % rake db:migrate % rake test
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
joinfix-1.0.0 | TEST_README |