Permalink
Browse files

add Gemfile and update pages so they'll build

  • Loading branch information...
dchelimsky committed Oct 9, 2011
1 parent 17bddec commit 60c091d00fe5fceafb382b70091916eb50fd0a84
View
1 .rvmrc
@@ -0,0 +1 @@
+rvm 1.8.7@rspec-website --create
View
@@ -0,0 +1,5 @@
+source :rubygems
+
+gem 'webby', '~> 0.9.4'
+gem 'coderay', '~> 0.9.8'
+gem 'RedCloth', '~> 4.2.7'
View
@@ -0,0 +1,40 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ RedCloth (4.2.8)
+ addressable (2.2.6)
+ coderay (0.9.8)
+ diff-lcs (1.1.3)
+ directory_watcher (1.4.1)
+ hpricot (0.8.4)
+ launchy (2.0.5)
+ addressable (~> 2.2.6)
+ little-plugger (1.1.2)
+ logging (1.6.1)
+ little-plugger (>= 1.1.2)
+ loquacious (1.9.0)
+ rake (0.8.7)
+ rspec (2.6.0)
+ rspec-core (~> 2.6.0)
+ rspec-expectations (~> 2.6.0)
+ rspec-mocks (~> 2.6.0)
+ rspec-core (2.6.4)
+ rspec-expectations (2.6.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.6.0)
+ webby (0.9.4)
+ directory_watcher (>= 1.1.2)
+ hpricot (>= 0.6.0)
+ launchy (>= 0.3.2)
+ logging (>= 0.9.7)
+ loquacious (>= 1.3.0)
+ rake (>= 0.8.4)
+ rspec (>= 1.2.2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ RedCloth (~> 4.2.7)
+ coderay (~> 0.9.8)
+ webby (~> 0.9.4)
@@ -5,4 +5,4 @@ filter:
- erb
- textile
---
-<pre><%= IO.read '../example_rails_app/vendor/plugins/rspec/History.rdoc' %></pre>
+<pre><%= IO.read '../rspec-core/Changelog.md' %></pre>
@@ -28,7 +28,7 @@ h2. Even more "other" frameworks
If you have a different framework that is not supported directly by RSpec, you can easily choose that framework instead by creating an adapter and telling RSpec where to find it. Here is RSpec's own adapter as an example:
-<% coderay do -%><%= IO.read "../example_rails_app/vendor/plugins/rspec/lib/spec/adapters/mock_frameworks/rspec.rb" %><% end -%>
+<% coderay do -%><%= IO.read "../rspec-core/lib/rspec/core/mocking/with_rspec.rb" %><% end -%>
This file must require any libraries or resources that implement the framework, and then define a <code>Spec::Plugins::MockFramework</code> module with the following methods:
@@ -47,9 +47,6 @@ to implement your own Formatter class, typically by subclassing
"ProgressBarFormatter":../rdoc/classes/Spec/Runner/Formatter/ProgressBarFormatter.html or "HtmlFormatter":../rdoc/classes/Spec/Runner/Formatter/HtmlFormatter.html
(depending on what your editor understands). In your formatter class you
can override the <code>backtrace_line</code> method to make the output be something that works with your editor.
-Example:
-
-<% coderay do -%><%= IO.read "../example_rails_app/vendor/plugins/rspec/examples/passing/custom_formatter.rb" %><% end -%>
Then, when the editor plugin launches RSpec, just make sure it uses the <code>--formatter</code>
option to specify *your* custom formatter. Note that you will probably have to use <code>--require</code>
@@ -8,16 +8,4 @@ filter:
h2. <%= @page.title %>
-RSpec has tight integration with "Heckle":https://rubyforge.org/projects/seattlerb/. Heckle is a tool inspired from
-"Jester":http://jester.sourceforge.net/.
-
-RSpec's Heckle support will run your specs many times, each time with a tiny mutation to your code (the
-application code, not the spec code).
-
-The idea is that if your specs still pass after the code has been mutated, then your specs are incomplete,
-and RSpec will tell you.
-
-h3. Running specs with Heckle
-
-Just use the <tt>--heckle</tt> option and give it an argument, which should be the full name of a module
-or a method. Run <tt>spec --help</tt> for further details.
+RSpec-2 dropped heckle integration since Heckle does not support ruby 1.9. If/when that changes, we'll revisit.
@@ -8,25 +8,5 @@ filter:
h2. <%= @page.title %>
-RSpec comes with a "Rake":http://rake.rubyforge.org/ task for executing specs.
-See "Spec::Rake::SpecTask":http://rspec.rubyforge.org/rspec/1.1.12/classes/Spec/Rake/SpecTask.html API for details.
-
-h3. Rake task example
-
-This is a snippet from RSpec's own Rakefile. It creates a task to run the examples.
-
-<% coderay do -%><%= IO.read "../example_rails_app/vendor/plugins/rspec/resources/rake/examples.rake" %><% end -%>
-
-It can be invoked from the command line with:
-
-<pre>
-rake examples
-</pre>
-
-Also see the "RCov":rcov.html page for info about how to generate a coverage report.
-
-h3. Generate HTML report
-
-<% coderay do -%><%= IO.read "../example_rails_app/vendor/plugins/rspec/resources/rake/failing_examples_with_html.rake" %><% end -%>
-
-This will write a HTML file that looks like "this":failing_examples.html.
+RSpec comes with a "Rake":http://rubygems.org/gems/rake task for executing specs.
+See "RSpec::Core::RakeTask":http://rubydoc.info/gems/rspec-core/RSpec/Core/RakeTask API for details.
@@ -15,7 +15,7 @@ h3. Running specs with RCov
The easiest way to use RCov with RSpec is from a rake script (Rakefile), using RSpec's
"Rake task":rake.html. The snippet below is from RSpec's own Rakefile.
-<% coderay do -%><%= IO.read "../example_rails_app/vendor/plugins/rspec/resources/rake/examples_with_rcov.rake" %><% end -%>
+[EXAMPLE PENDING]
By adding <code>rcov=true</code> to the rake task, specs will be run with RCov
instead of the standard ruby interpreter, and a coverage report like
@@ -36,7 +36,7 @@ You can guard your codebase's coverage from dropping below a certain threshold
by using RSpec's built-in task for verification of the total RCov coverage.
(This is not the same as RCov's --threshold option, which is a filtering mechanism).
-<% coderay do -%><%= IO.read "../example_rails_app/vendor/plugins/rspec/resources/rake/verify_rcov.rake" %><% end -%>
+[EXAMPLE PENDING]
This will give you a :verify_rcov task that will fail your build if the
coverage drops below the threshold you define.
@@ -5,4 +5,4 @@ filter:
- erb
- textile
---
-<pre><%= IO.read '../example_rails_app/vendor/plugins/rspec-rails/History.rdoc' %></pre>
+<pre><%= IO.read '../rspec-rails/Changelog.md' %></pre>
View
@@ -1,3 +0,0 @@
-Dir.chdir(File.join(File.dirname(__FILE__), *%w[.. example_rails_app vendor plugins rspec])) do
- puts `bin/spec #{ARGV.first}`
-end
View
@@ -47,22 +47,15 @@ def immediate_children
end
end
- require File.dirname(__FILE__) + '/../../example_rails_app/vendor/plugins/rspec/lib/spec/version'
- require File.dirname(__FILE__) + '/../../example_rails_app/vendor/plugins/rspec-rails/lib/spec/rails/version'
-
class Renderer
def rspec_version
- Spec::VERSION::STRING
+ "2.7.0.rc1"
end
def rspec_rails_version
- Spec::Rails::VERSION::STRING
+ "2.7.0.rc1"
end
- def svn_tag
- Spec::VERSION::TAG
- end
-
def breadcrumb_menu(page)
'<div class="breadcrumb-menu">' + breadcrumbs(page) + menu(page) + '</div>'
end

0 comments on commit 60c091d

Please sign in to comment.