forked from pcreux/refuge
/
tests_infected_presentation.html
139 lines (97 loc) · 3.39 KB
/
tests_infected_presentation.html
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Untitled Slide Show</title>
<meta name="generator" content="- generator not found -">
<meta name="author" content="- author not found -" >
<!-- helper/macro that lets you add (CSS3) gradient using headers
see http://slideshow.rubyforge.org/themes.html
-->
<!-- S6 style sheet links -->
<link rel="stylesheet" href="tests_infected_presentation.css" media="projection" id="styleProjection">
<link rel="stylesheet" href="s6/screen.css" media="screen" id="styleScreen">
<link rel="stylesheet" href="s6/print.css" media="print">
<!-- S6 JS -->
<script src="s6/jquery.js"></script>
<script src="s6/jquery.slideshow.js"></script>
<script>
$(document).ready( function() {
Slideshow.init();
} );
</script>
<!-- Better Browser Banner for Microsoft Internet Explorer (IE) -->
<!--[if IE]>
<script src="s6/jquery.microsoft.js"></script>
<![endif]-->
</head>
<body>
<div class="layout">
<div id="header"></div>
<div id="footer">
<h1></h1>
<h2></h2>
</div>
</div>
<div class="presentation">
<div class='slide '>
<h1 id="tests-infected-introduction">1. Tests infected introduction</h1><p>Jean-Michel Garnier, <a href="http://lyonrb.fr/">http://lyonrb.fr/</a> - apéro Ruby mai 2012</p>
<p>Built with <a href="https://github.com/nakajima/slidedown">https://github.com/nakajima/slidedown</a></p>
</div>
<div class='slide '>
<h1 id="histoire">2. Histoire</h1><ul>
<li>1994: Kent Beck describes SUnit testing framework for Smalltalk</li>
<li>2001: <a href="http://agilemanifesto.org/">http://agilemanifesto.org/</a> + First test written by JM</li>
<li>2004: Rails</li>
<li>2006: BDD, RSpec</li>
<li>2011: travisci</li>
</ul>
<h2 id="links">Links</h2>
<ul>
<li><a href="http://guide.agilealliance.org/timeline.html">http://guide.agilealliance.org/timeline.html</a></li>
<li><a href="http://21croissants.github.com/testing-rails-workshop">http://21croissants.github.com/testing-rails-workshop</a></li>
</ul>
</div>
<div class='slide '>
<h1 id="vocabulaire">3. Vocabulaire</h1><h2 id="unit">Unit</h2>
<h2 id="integration">Integration</h2>
<h2 id="acceptance">Acceptance</h2>
</div>
<div class='slide '>
<h1 id="anatomie-rspec">4. Anatomie RSpec</h1><pre><code>require 'spec_helper'
describe "Class" do
before :each do
# test data set up
end
describe "#method" do
it "should specify the method under test behaviour" do
# example and assertion using should
end
end
end
</code></pre>
<h2 id="links-1">Links</h2>
<ul>
<li><a href="http://blog.josephwilk.net/cucumber/examples-are-not-a-specification.html">http://blog.josephwilk.net/cucumber/examples-are-not-a-specification.html</a></li>
<li><a href="http://eggsonbread.com/2010/03/28/my-rspec-best-practices-and-tips/">http://eggsonbread.com/2010/03/28/my-rspec-best-practices-and-tips/</a></li>
<li><a href="https://www.relishapp.com/rspec/">https://www.relishapp.com/rspec/</a></li>
</ul>
</div>
<div class='slide '>
<h1 id="example">5. Example</h1><pre><code>require 'spec_helper'
describe Member do
before :each do
@member = Member.new
end
describe "to be valid" do
it "requires at least a first name " do
@user.first_name = "Guillaume"
@user.valid?.should == true
end
end
end
</code></pre>
</div>
</div><!-- presentation -->
</body>
</html>