Skip to content
This repository
Browse code

Add deps and get RSpec bootstrapped

  • Loading branch information...
commit b6f22d6cfbf3efdf876dfeebdbdc7f3d52e2c16d 1 parent 8f23b7f
Jared Pace authored
4  Rakefile
... ...
@@ -1,2 +1,6 @@
1 1
 #!/usr/bin/env rake
2 2
 require "bundler/gem_tasks"
  3
+
  4
+require 'rspec/core/rake_task'
  5
+RSpec::Core::RakeTask.new(:spec)
  6
+task :default => :spec
9  koality.gemspec
@@ -14,4 +14,13 @@ Gem::Specification.new do |gem|
14 14
   gem.name          = "koality"
15 15
   gem.require_paths = ["lib"]
16 16
   gem.version       = Koality::VERSION
  17
+
  18
+  # Runtime Dependencies
  19
+  gem.add_runtime_dependency 'rails_best_practices', ['~> 1.9']
  20
+  gem.add_runtime_dependency 'simplecov', ['~> 0.6']
  21
+  gem.add_runtime_dependency 'cane', ['~> 1.3']
  22
+
  23
+  # Developmnet Dependencies
  24
+  gem.add_development_dependency 'rspec', ['~> 2.10']
  25
+  gem.add_development_dependency 'mocha', ['~> 0.11']
17 26
 end
16  spec/spec_helper.rb
... ...
@@ -0,0 +1,16 @@
  1
+$LOAD_PATH.unshift "../lib"
  2
+
  3
+require 'rspec'
  4
+require 'koality'
  5
+
  6
+RSpec.configure do |config|
  7
+  config.color_enabled = true
  8
+  config.mock_with :mocha
  9
+
  10
+  config.formatter = :progress
  11
+  config.color_enabled = true
  12
+  config.filter_run :focused => true
  13
+  config.run_all_when_everything_filtered = true
  14
+  config.alias_example_to :fit, :focused => true
  15
+  config.alias_example_to :they
  16
+end

0 notes on commit b6f22d6

Please sign in to comment.
Something went wrong with that request. Please try again.