Permalink
Browse files

Bull in a china shop [no ci]

  • Loading branch information...
1 parent 6a3f233 commit 6a6879fbc8af7b3acb40daa55432de158ada3914 @ezkl ezkl committed May 11, 2012
Showing with 7 additions and 22 deletions.
  1. +0 −2 spec/.rspec
  2. +0 −2 spec/feedzirra/feed_utilities_spec.rb
  3. +7 −18 spec/spec_helper.rb
View
@@ -1,2 +0,0 @@
---diff
---color
@@ -1,6 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
-require 'rubygems'
-require 'active_support'
describe Feedzirra::FeedUtilities do
before(:each) do
View
@@ -1,13 +1,4 @@
-require "rubygems"
-require "rspec"
-
-# gem install redgreen for colored test output
-begin require "redgreen" unless ENV['TM_CURRENT_LINE']; rescue LoadError; end
-
-path = File.expand_path(File.dirname(__FILE__) + "/../lib/")
-$LOAD_PATH.unshift(path) unless $LOAD_PATH.include?(path)
-
-require "feedzirra"
+require File.expand_path(File.dirname(__FILE__) + '/../lib/feedzirra')
def load_sample(filename)
File.read("#{File.dirname(__FILE__)}/sample_feeds/#{filename}")
@@ -68,11 +59,9 @@ def sample_wfw_feed
def sample_google_docs_list_feed
load_sample("GoogleDocsList.xml")
end
-
-# http://eigenclass.org/hiki/Changes+in+Ruby+1.9#l156
-# Default Time.to_s changed in 1.9, monkeypatching it back
-class Time
- def to_s
- strftime("%a %b %d %H:%M:%S %Z %Y")
- end
-end
+
+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
+end

0 comments on commit 6a6879f

Please sign in to comment.