spec/spec_helper.rb in ravelry-0.0.6 vs spec/spec_helper.rb in ravelry-0.0.7

- old
+ new

@@ -6,10 +6,11 @@ require_relative 'helpers/helpers' require_relative 'helpers/pattern_helpers' require_relative 'helpers/pack_helpers' require_relative 'helpers/yarn_helpers' require_relative 'helpers/yarn_weight_helpers' +require_relative 'helpers/request_helpers' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} @@ -17,14 +18,19 @@ config.include Helpers config.include PatternHelpers config.include PackHelpers config.include YarnHelpers config.include YarnWeightHelpers + config.include RequestHelpers config.order = "random" config.before(:all) do Ravelry.configure do |config| config.access_key = ENV['RAV_ACCESS'] config.secret_key = ENV['RAV_SECRET'] config.personal_key = ENV['RAV_PERSONAL'] end end -end \ No newline at end of file + + config.before(:each) do + Typhoeus::Expectation.clear + end +end