Permalink
Browse files

Add a test suite

  • Loading branch information...
1 parent c6486ca commit 8f973962f37bfdbb221b7247c771e050b2156e08 Robert Pitts and Tim Pope committed with Hashrocket Workstation Mar 31, 2011
Showing with 31 additions and 0 deletions.
  1. +8 −0 Rakefile
  2. +23 −0 spec/centaur_spec.rb
View
@@ -1,2 +1,10 @@
require 'bundler'
Bundler::GemHelper.install_tasks
+require "rspec/core/rake_task"
+
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.rspec_opts = "--format TestAlignCentaur --color"
+ spec.pattern = "spec/**/*_spec.rb"
+end
+
+task :default => :spec
View
@@ -0,0 +1,23 @@
+describe TestAlignCentaur do
+
+ def self.pass
+ it { }
+ end
+
+ def self.fail
+ it { true.should be_false }
+ end
+
+ def self.pend(reason)
+ it { pending(reason) }
+ end
+
+ 49.times { pass }
+
+ pend "Left eye"
+ pass
+ pend "Right eye"
+
+ 566.times { pass }
+
+end

0 comments on commit 8f97396

Please sign in to comment.