Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bull in a china shop [no ci]

  • Loading branch information...
commit 6a6879fbc8af7b3acb40daa55432de158ada3914 1 parent 6a3f233
@ezkl ezkl authored
View
2  spec/.rspec
@@ -1,2 +0,0 @@
---diff
---color
View
2  spec/feedzirra/feed_utilities_spec.rb
@@ -1,6 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
-require 'rubygems'
-require 'active_support'
describe Feedzirra::FeedUtilities do
before(:each) do
View
25 spec/spec_helper.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.