-
Notifications
You must be signed in to change notification settings - Fork 608
/
index.html
240 lines (158 loc) · 7.89 KB
/
index.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
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
<!DOCTYPE html>
<html>
<head>
<title>How-To - Fix a Failing Spec - Rubinius</title>
<meta content='text/html;charset=utf-8' http-equiv='content-type'>
<meta content='pt-br' http-equiv='content-language'>
<meta content='Rubinius is an implementation of the Ruby programming language. The Rubinius bytecode virtual machine is written in C++. The bytecode compiler is written in pure Ruby. The vast majority of the core library is also written in Ruby, with some supporting primitives that interact with the VM directly.' name='description'>
<meta content='Less Than Three. <3. http://less.thanthree.com' name='author'>
<link href='/' rel='home'>
<link href='/' rel='start'>
<link href='/doc/pt-br/how-to/write-a-ruby-spec' rel='prev' title='Write a Ruby Spec'>
<link href='/doc/pt-br/how-to/write-benchmarks' rel='next' title='Write Benchmarks'>
<!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script><![endif]-->
<script src="/javascripts/jquery-1.3.2.js" type="text/javascript"></script>
<script src="/javascripts/paging_keys.js" type="text/javascript"></script>
<script src="/javascripts/application.js" type="text/javascript"></script>
<style>article, aside, dialog, figure, footer, header, hgroup, menu, nav, section { display: block; }</style>
<link href="/stylesheets/blueprint/screen.css" media="screen" rel="stylesheet" type="text/css" />
<link href="/stylesheets/application.css" media="screen" rel="stylesheet" type="text/css" />
<link href="/stylesheets/blueprint/print.css" media="print" rel="stylesheet" type="text/css" />
<!--[if IE]><link href="/stylesheets/blueprint/ie.css" media="screen" rel="stylesheet" type="text/css" /><![endif]-->
<!--[if IE]><link href="/stylesheets/ie.css" media="screen" rel="stylesheet" type="text/css" /><![endif]-->
<link href="/stylesheets/pygments.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>
<div class='container'>
<div class='span-21 doc_menu'>
<header>
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a id="blog" href="/blog/">Blog</a></li>
<li><a id="documentation" href="/doc/en/">Documentation</a></li>
<li><a href="/projects/">Projects</a></li>
<li><a href="/roadmap/">Roadmap</a></li>
<li><a href="/releases/">Releases</a></li>
</ul>
</nav>
</header>
</div>
<div class='span-3 last'>
<div id='version'>
<a href="/releases/1.2.3">1.2.3</a>
</div>
</div>
</div>
<div class="container languages">
<nav>
<span class="label">Languages:</span>
<ul>
<li><a href="/doc/de/how-to/fix-a-failing-spec/"
>de</a></li>
<li><a href="/doc/en/how-to/fix-a-failing-spec/"
>en</a></li>
<li><a href="/doc/es/how-to/fix-a-failing-spec/"
>es</a></li>
<li><a href="/doc/fr/how-to/fix-a-failing-spec/"
>fr</a></li>
<li><a href="/doc/ja/how-to/fix-a-failing-spec/"
>ja</a></li>
<li><a href="/doc/pl/how-to/fix-a-failing-spec/"
>pl</a></li>
<li><a href="/doc/pt-br/how-to/fix-a-failing-spec/"
class="current"
>pt-br</a></li>
<li><a href="/doc/ru/how-to/fix-a-failing-spec/"
>ru</a></li>
</ul>
</nav>
</div>
<div class="container doc_page_nav">
<span class="label">Previous:</span>
<a href="/doc/pt-br/how-to/write-a-ruby-spec">Write a Ruby Spec</a>
<span class="label">Up:</span>
<a href="/doc/pt-br/">Tabela de Conteúdos</a>
<span class="label">Next:</span>
<a href="/doc/pt-br/how-to/write-benchmarks">Write Benchmarks</a>
</div>
<div class="container documentation">
<h2>How-To - Fix a Failing Spec</h2>
<p>Make sure you have read:</p>
<ul>
<li><a href="/doc/pt-br/getting-started/">Getting Started</a></li>
<li><a href="/doc/pt-br/specs/">Specs</a></li>
</ul>
<p>Then, follow these steps to fix a failing spec:</p>
<ol>
<li>Run <code>rake</code> to ensure that all CI specs are passing.</li>
<li>Run <code>bin/mspec spec/some/spec_file.rb</code> to confirm the spec fails.</li>
<li>Edit a file somewhere in Rubinius (probably under the kernel directory).</li>
<li>Run <code>rake build</code> to build your change.</li>
<li>Run <code>bin/mspec spec/some/spec_file.rb</code> to see if your change makes the
spec pass.</li>
<li>Repeat until your spec passes.</li>
<li>Run <code>rake</code> to ensure there are no regressions.</li>
<li>Change directory to Rubinius root if not already there.</li>
<li>Run <code>git status, git add, git commit</code>, etc. Any changes made to the spec
files under the spec/ruby directory must be in a different commit from
changes made to other Rubinius source code files.</li>
<li>Run <code>git format-patch origin</code>, which will extract commits that the current
branch accumulated since the last pull from origin, or `git format-patch
-N’, where N is the number (1, 2, etc.) of commits for which you want to
generate patches.</li>
<li>Create a gist with your patch and link to it in a ticket on the issue
tracker at http://github.com/rubinius/rubinius/issues. You can add multiple
patches to one ticket.</li>
</ol>
<p>When your patch is accepted by the Rubinius project, you’ll get a commit bit
for the Rubinius repository. Let Evan know what your Github username is.</p>
</div>
<div class="container doc_page_nav">
<span class="label">Previous:</span>
<a href="/doc/pt-br/how-to/write-a-ruby-spec">Write a Ruby Spec</a>
<span class="label">Up:</span>
<a href="/doc/pt-br/">Tabela de Conteúdos</a>
<span class="label">Next:</span>
<a href="/doc/pt-br/how-to/write-benchmarks">Write Benchmarks</a>
</div>
<div class="container">
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = 'rubinius';
var disqus_identifier = '/doc/pt-br/how-to/fix-a-failing-spec/';
var disqus_url = 'http://rubini.us/doc/pt-br/how-to/fix-a-failing-spec/';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
</div>
<footer>
<div class='container'>
<nav>
<ul>
<li><a href="http://twitter.com/rubinius">Follow Rubinius on Twitter</a></li>
<li><a href="http://github.com/evanphx/rubinius">Fork Rubinius on github</a></li>
<li><a href="http://engineyard.com">An Engine Yard project</a></li>
<li id='credit'>
Site design by
<a href="http://less.thanthree.com">Less Than Three</a>
</li>
</ul>
</nav>
</div>
</footer>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-12328521-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>