Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tests passing again and updated gemfile with necessary gems.

  • Loading branch information...
commit 8aabca54fdc379b06120756a2466ce49ed4998b7 1 parent 77ae4ed
@jnunemaker jnunemaker authored
View
5 Gemfile
@@ -2,3 +2,8 @@ source :rubygems
# Specify your gem's dependencies in google-weather.gemspec
gemspec
+
+gem 'rake'
+gem 'shoulda'
+gem 'jnunemaker-matchy', :require => 'matchy'
+gem 'fakeweb'
View
10 Gemfile.lock
@@ -8,13 +8,19 @@ GEM
remote: http://rubygems.org/
specs:
crack (0.1.6)
+ fakeweb (1.3.0)
httparty (0.5.2)
crack (= 0.1.6)
+ jnunemaker-matchy (0.4.0)
+ rake (0.9.2)
+ shoulda (2.11.3)
PLATFORMS
ruby
DEPENDENCIES
- bundler (>= 1.0.0)
+ fakeweb
google-weather!
- httparty (= 0.5.2)
+ jnunemaker-matchy
+ rake
+ shoulda
View
1  google-weather.gemspec
@@ -14,7 +14,6 @@ Gem::Specification.new do |s|
s.required_rubygems_version = ">= 1.3.6"
s.rubyforge_project = "google-weather"
- s.add_development_dependency "bundler", ">= 1.0.0"
s.add_dependency "httparty", "0.5.2"
s.files = `git ls-files`.split("\n")
View
2  test/google_weather_test.rb
@@ -26,7 +26,7 @@ class GoogleWeatherTest < Test::Unit::TestCase
context "Fetching" do
setup do
- FakeWeb.register_uri(:get, "http://www.google.com/ig/api?weather=46544", :string => File.read("fixtures/46544.xml"))
+ FakeWeb.register_uri(:get, "http://www.google.com/ig/api?weather=46544", :body => fixture_file("fixtures/46544.xml"))
@weather = GoogleWeather.new(46544)
end
View
4 test/test_helper.rb
@@ -1,3 +1,4 @@
+require 'pathname'
require 'rubygems'
require 'test/unit'
require 'shoulda'
@@ -11,4 +12,7 @@
require 'google_weather'
class Test::Unit::TestCase
+ def fixture_file(path)
+ Pathname(__FILE__).dirname.join(*path.split('/')).read
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.