Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsdeleo committed Jul 11, 2009
0 parents commit b2172a7
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 0 deletions.
Empty file added README.rdoc
Empty file.
35 changes: 35 additions & 0 deletions Rakefile
@@ -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
5 changes: 5 additions & 0 deletions lib/qusion.rb
@@ -0,0 +1,5 @@
# encoding: UTF-8
unless defined?(QUSION_ROOT)
QUSION_ROOT = File.dirname(__FILE__) + '/'
end

1 change: 1 addition & 0 deletions spec/spec.opts
@@ -0,0 +1 @@
-f specdoc -c -t 2
11 changes: 11 additions & 0 deletions spec/spec_helper.rb
@@ -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.