public
Description: RSpec support for Waves
Homepage:
Clone URL: git://github.com/psq/waves_rspec.git
automatthew (author)
Thu Mar 20 09:53:56 -0700 2008
commit  b4496c655aea8688d8b92653ffd0ffdc48078e6c
tree    9ea7289e4c0833091bd463c6864cefac04111d8a
parent  85b60042fb987347d8f175ee61f4763e0758138f
waves_rspec / README.txt
100644 70 lines (49 sloc) 1.533 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
= waves-rspec
 
* http://blog.nanorails.com/waves-rspec
* http://rubyforge.org/projects/waves-rspec/
 
== DESCRIPTION:
 
RSpec support for the Waves Framework
 
== FEATURES/PROBLEMS:
 
* creates a spec skeleton wit
rake generate:rspec
 
* Adds Spec generation to waves generators
rake generate:model name=...
rake generate:controller name=...
 
* Adds tasks to run specs
rake spec
 
== SYNOPSIS:
* requires a "test" configuration. Add ./configurations/test.rb (modeled on configurations/development.rb)
 
Example:
 
$ waves test5
** Creating new Waves application ...
** Application created!
$ cd test5
## Add require 'waves-spec' in rakefile
$ mkdir db
## Create test configuration with (for example) [database :adapter => 'sqlite', :database => 'db/test5_test']
$ rake generate:rspec
$ rake generate:model name=task
(in /Users/psq/src/waves/test5)
** spec/models created
** spec/models/task_spec.rb created
$ rake schema:migration name=task
## Fill migration
$ rake schema:migrate mode=test --trace
(in /Users/psq/src/waves/test5)
** Invoke schema:migrate (first_time)
** Execute schema:migrate
$ rake spec
(in /Users/psq/src/waves/test5)
Ruby/Extensions: String#starts_with? is already defined; not overwriting
.
 
Finished in 0.190411 seconds
 
1 example, 0 failures
 
 
== REQUIREMENTS:
 
* waves
 
== INSTALL:
 
* sudo gem install waves-rspec
 
* add "require 'waves-rspec" to your Rakefile
 
== DEVELOPING WITH WAVES LOCALLY
easiest it to install as a local gem inside waves with
 
rake package
gem install --local pkg/*.gem -i [WAVE_APP]/gems/