Skip to content

Commit

Permalink
Bull in a china shop [no ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ezkl committed May 11, 2012
1 parent 6a3f233 commit 6a6879f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 22 deletions.
2 changes: 0 additions & 2 deletions spec/.rspec

This file was deleted.

2 changes: 0 additions & 2 deletions spec/feedzirra/feed_utilities_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require 'rubygems'
require 'active_support'

describe Feedzirra::FeedUtilities do
before(:each) do
Expand Down
25 changes: 7 additions & 18 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -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}")
Expand Down Expand Up @@ -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.