Browse Source

Adding rspec.

master
Matt Mueller 11 years ago
parent
commit
ea0799270e
  1. 20
      spec/spec_helper.rb
  2. 1
      two_factor_authentication.gemspec

20
spec/spec_helper.rb

@ -0,0 +1,20 @@
require "rubygems"
require "bundler/setup"
require 'two_factor_authentication'
Dir["#{Dir.pwd}/spec/support/**/*.rb"].each {|f| require f}
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
config.treat_symbols_as_metadata_keys_with_true_values = true
config.run_all_when_everything_filtered = true
config.filter_run :focus
# Run specs in random order to surface order dependencies. If you find an
# order dependency and want to debug it, you can fix the order by providing
# the seed, which is printed after each run.
# --seed 1234
config.order = 'random'
end

1
two_factor_authentication.gemspec

@ -24,6 +24,7 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
s.add_development_dependency "rspec"
s.add_runtime_dependency 'rails', '>= 3.1.1'
s.add_runtime_dependency 'devise'
s.add_runtime_dependency 'randexp'

Loading…
Cancel
Save