Skip to content
This repository
Browse code

WIP Rspec

  • Loading branch information...
commit dfe82ee413862ed41cd13c3ad5cea75c1836f379 1 parent 68bf4a3
Reda Lemeden authored January 09, 2013
2  .rspec
... ...
@@ -0,0 +1,2 @@
  1
+--color
  2
+--format documentation
8  Rakefile
... ...
@@ -1,4 +1,10 @@
  1
+require 'rubygems'
1 2
 require 'bundler'
  3
+require 'rspec/core/rake_task'
2 4
 Bundler::GemHelper.install_tasks
3 5
 
4  
-import 'lib/tasks/test.rake'
  6
+RSpec::Core::RakeTask.new(:spec) do |spec|
  7
+  spec.pattern = FileList['spec/**/*_spec.rb']
  8
+end
  9
+
  10
+task :default => :spec
4  neat.gemspec
@@ -27,4 +27,8 @@ Neat is an open source grid framework built on top of Bourbon with the aim of be
27 27
   s.add_development_dependency('aruba', '~> 0.4')
28 28
   s.add_development_dependency('rake')
29 29
   s.add_development_dependency('css_parser')
  30
+  s.add_development_dependency('rspec')
  31
+  s.add_development_dependency('rdoc')
  32
+  s.add_development_dependency('jeweler')
  33
+  s.add_development_dependency('bundler')
30 34
 end
11  spec/neat_spec.rb
... ...
@@ -0,0 +1,11 @@
  1
+require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
  2
+
  3
+describe "Neat" do
  4
+  it "fails" do
  5
+    fail "Failed"
  6
+  end
  7
+end
  8
+
  9
+describe "Foobar" do
  10
+  pending "Write spec"
  11
+end
12  spec/spec_helper.rb
... ...
@@ -0,0 +1,12 @@
  1
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
  2
+$LOAD_PATH.unshift(File.dirname(__FILE__))
  3
+require 'rspec'
  4
+require 'neat'
  5
+
  6
+# Requires supporting files with custom matchers and macros, etc,
  7
+# in ./support/ and its subdirectories.
  8
+Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
  9
+
  10
+RSpec.configure do |config|
  11
+  
  12
+end

0 notes on commit dfe82ee

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