-
Notifications
You must be signed in to change notification settings - Fork 25
/
CHANGES
173 lines (113 loc) · 4.66 KB
/
CHANGES
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
CHANGES
----------------------------------------------------------------------
2011-05-18:
-----------
- STILL version 2.0.2
- The REST of the HTTP header support from Chris Bailey :-)
- SRS build problems now cropping up, not bumping version until they
can be fixed :-(
2011-05-03:
-----------
- Version 2.0.2
- Support for HTTP headers, thanks to Chris Bailey
======================================================================
VERSION 2.0.0 WOOOOOOO!
----------------------------------------------------------------------
- Version 2.0.0
!!!! WARNING: THIS CHANGE BREAKS TourBus 1.x TOURS !!!!
tl;dr: Tours are now called Tourists, and tests are now called tours.
Open all your tour classes and make two changes:
1. Rename "< Tour" to "< Tourist". I picked the wrong name for your
base classes. It's fixed now. Sorry about that.
2. Rename all your "test_" methods to "tour_" methods. These are the
individual tours.
3. Rename any before_tests and after_tests methods to before_tours
and after_tours.
4. SERIOUSLY tl;dr? Okay fine:
cd $your_project/tours
perl -ipe "s/< Tour\s*$/< Tourist/" *.rb
perl -ipe "s/(before|after)_tests\s*$/$1_tours/" *.rb
perl -ipe "s/^(\s*)def test_/$1def tour_/" *.rb
Everything else should just work. CAVEAT HACKOR: I wrote those perl
scripts from memory and haven't even attempted them, let alone tested.
Make backups and YMMV.
- Tours are now called Tourists. THIS AFFECTS YOUR EXISTING TOURS.
You need to rename your "< Tour" classes to inherit from "<
Tourist". Sorry about that, but the name was wrong. Reason for
this change is that the thing I was calling a Tour was being
collected into a tour group and then walked around on many tours.
This is the definition of a tourist.
- test_ methods are called tours, so you should begin them with
tour_.
- TourBus is the master class that launches Runners.
- Runners are basically the "Tour Guides" that lead a bunch of
Tourists through the website. I may rename these to "TourGuide" at
some point if the naming scheme is communicative. When I first
wrote it it felt cutesy but in summarizing here it kind of makes
sense. I'm okay releasing the 2.0 version now and making this
change later because changing Runner to TourGuide will not break
TourBus clients.
2010-03-26:
-----------
- Version 0.1.5
- Much cleaner webrat integration thanks to Joe Tanner.
2010-03-23:
-----------
- Version 0.1.4
- "runners" now "report to the starting line": runners wait for all
runners to be ready before starting their runs.
2010-03-22:
-----------
- Version 0.1.3
- Updated to be compatible with webrat 0.7.0
** NO LONGER COMPATIBLE WITH webrat 0.5.3
2009-07-27:
-----------
- Version 0.1.1
- added webrat to the gemspec as a requirement.
2009-07-25:
-----------
- Version 0.1.0
- finished implementing webrat
- removed WebSickle
- updated examples and docs to reflect new usage
2009-07-07:
-----------
- Version 0.0.10
- use webrat's selectors, matchers and other goodness
- added a wait method to Tours so you can do wait 5.seconds and it will wait for five seconds
2009-04-30:
-----------
- Version 0.0.9:
- before_tour, after_tour added by JTZemp. Runs at the beginning and
end of each tour.
2009-04-17:
-----------
- Version 0.0.8:
- Per-test filtering added by James Britt.
Dave notes: Beware, there's a gotcha. TourBus will accept multiple
tours to run (e.g. "tourbus simple login contact"), and if you
specify filtering, you'll get the intersection of tests and tours.
There's no way to select 'this test from this tour, and that test
from that tour'. I think it's a great feature though because when
you want to zero in on a specific test you're usually focused in
on a specific tour, too.
2009-01-10:
-----------
- Added README.rdoc to examples/contact_app
- Added first example! Brain-dead Sinatra app that can be toured.
- Added test name to logging output in tour.
- Added missing tourbus.yml file to gemspec.
- Removed a bit of debugging code that printed options and then
exited. This made actually running the app rather difficult. Heh.
Oops.
2009-01-09:
-----------
- tourbus -l will now check see if a file in tours actually defines a
constant by that name that inherits from Tour, as opposed to barfing
spectacularly on files in the tour_helpers folder.
- Added a config file option. Tourbus looks for tourbus.yml in .,
./tours, ./config, and ~. Any options set there will be merged into
the command-line args. (Command-line args override config file
options, naturally.)
Added tourbus.sample.yml to show what fields are available.