Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit b2172a76605af7c96770b9a8f964f104c13bd284 @danielsdeleo committed Jul 11, 2009
Showing with 52 additions and 0 deletions.
  1. 0 README.rdoc
  2. +35 −0 Rakefile
  3. +5 −0 lib/qusion.rb
  4. +1 −0 spec/spec.opts
  5. +11 −0 spec/spec_helper.rb
No changes.
@@ -0,0 +1,35 @@
+# encoding: UTF-8
+require "spec/rake/spectask"
+require "cucumber"
+require "cucumber/rake/task"
+
+task :default => :spec
+
+desc "Run Cucumber Features"
+Cucumber::Rake::Task.new do |t|
+ t.cucumber_opts = "-c -n"
+end
+
+desc "Run all of the specs"
+Spec::Rake::SpecTask.new do |t|
+ t.spec_opts = ['--options', "spec/spec.opts"]
+ t.fail_on_error = false
+end
+
+namespace :spec do
+
+ desc "Generate HTML report for failing examples"
+ Spec::Rake::SpecTask.new('report') do |t|
+ t.spec_files = FileList['failing_examples/**/*.rb']
+ t.spec_opts = ["--format", "html:doc/tools/reports/failing_examples.html", "--diff", '--options', '"spec/spec.opts"']
+ t.fail_on_error = false
+ end
+
+ desc "Run all spec with RCov"
+ Spec::Rake::SpecTask.new(:rcov) do |t|
+ t.rcov = true
+ t.rcov_dir = 'doc/tools/coverage/'
+ t.rcov_opts = ['--exclude', 'spec']
+ end
+
+end
@@ -0,0 +1,5 @@
+# encoding: UTF-8
+unless defined?(QUSION_ROOT)
+ QUSION_ROOT = File.dirname(__FILE__) + '/'
+end
+
@@ -0,0 +1 @@
+-f specdoc -c -t 2
@@ -0,0 +1,11 @@
+# encoding: UTF-8
+require 'rubygems'
+
+require File.dirname(__FILE__) + '/../lib/qusion.rb'
+
+Spec::Runner.configure do |config|
+ config.mock_with :mocha
+end
+
+include Qusion
+

0 comments on commit b2172a7

Please sign in to comment.