Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initial rspec setup

  • Loading branch information...
commit a1ad04f01e27e30eb3de7184bf88cbedafa13bf3 1 parent 2f5b1e3
Chad Humphries and Alex Redington authored
View
10 Rakefile
@@ -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
View
5 spec/onelogin/saml/authrequest_spec.rb
@@ -0,0 +1,5 @@
+require 'spec_helper'
+
+describe "placeholder" do
+ it "should do something"
+end
View
15 spec/spec_helper.rb
@@ -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
+
Please sign in to comment.
Something went wrong with that request. Please try again.