Permalink
Browse files

Initial rspec setup

  • Loading branch information...
1 parent 2f5b1e3 commit a1ad04f01e27e30eb3de7184bf88cbedafa13bf3 Chad Humphries and Alex Redington committed Oct 5, 2010
Showing with 23 additions and 7 deletions.
  1. +3 −7 Rakefile
  2. +5 −0 spec/onelogin/saml/authrequest_spec.rb
  3. +15 −0 spec/spec_helper.rb
View
@@ -1,11 +1,7 @@
require 'bundler'
Bundler::GemHelper.install_tasks
+require 'rspec/core/rake_task'
-require 'rake/testtask'
-Rake::TestTask.new(:test) do |test|
- test.libs << 'lib' << 'test'
- test.pattern = 'test/**/*_test.rb'
- test.verbose = true
-end
+RSpec::Core::RakeTask.new(:spec)
-task :default => :test
+task :default => :spec
@@ -0,0 +1,5 @@
+require 'spec_helper'
+
+describe "placeholder" do
+ it "should do something"
+end
View
@@ -0,0 +1,15 @@
+require 'ruby-saml'
+require 'rspec'
+
+Dir['./spec/support/**/*'].each { |f| require f }
+
+RSpec::configure do |config|
+ config.mock_with :rspec
+ config.color_enabled = true
+ config.run_all_when_everything_filtered = true
+ config.filter_run :focused => true
+ config.formatter = :documentation
+ config.backtrace_clean_patterns << %r{\.rvm}
+ config.fail_fast = true
+end
+

0 comments on commit a1ad04f

Please sign in to comment.