Skip to content

Commit

Permalink
Tests passing again and updated gemfile with necessary gems.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Sep 17, 2011
1 parent 77ae4ed commit 8aabca5
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Gemfile
Expand Up @@ -2,3 +2,8 @@ source :rubygems


# Specify your gem's dependencies in google-weather.gemspec # Specify your gem's dependencies in google-weather.gemspec
gemspec gemspec

gem 'rake'
gem 'shoulda'
gem 'jnunemaker-matchy', :require => 'matchy'
gem 'fakeweb'
10 changes: 8 additions & 2 deletions Gemfile.lock
Expand Up @@ -8,13 +8,19 @@ GEM
remote: http://rubygems.org/ remote: http://rubygems.org/
specs: specs:
crack (0.1.6) crack (0.1.6)
fakeweb (1.3.0)
httparty (0.5.2) httparty (0.5.2)
crack (= 0.1.6) crack (= 0.1.6)
jnunemaker-matchy (0.4.0)
rake (0.9.2)
shoulda (2.11.3)


PLATFORMS PLATFORMS
ruby ruby


DEPENDENCIES DEPENDENCIES
bundler (>= 1.0.0) fakeweb
google-weather! google-weather!
httparty (= 0.5.2) jnunemaker-matchy
rake
shoulda
1 change: 0 additions & 1 deletion google-weather.gemspec
Expand Up @@ -14,7 +14,6 @@ Gem::Specification.new do |s|
s.required_rubygems_version = ">= 1.3.6" s.required_rubygems_version = ">= 1.3.6"
s.rubyforge_project = "google-weather" s.rubyforge_project = "google-weather"


s.add_development_dependency "bundler", ">= 1.0.0"
s.add_dependency "httparty", "0.5.2" s.add_dependency "httparty", "0.5.2"


s.files = `git ls-files`.split("\n") s.files = `git ls-files`.split("\n")
Expand Down
2 changes: 1 addition & 1 deletion test/google_weather_test.rb
Expand Up @@ -26,7 +26,7 @@ class GoogleWeatherTest < Test::Unit::TestCase


context "Fetching" do context "Fetching" do
setup 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) @weather = GoogleWeather.new(46544)
end end


Expand Down
4 changes: 4 additions & 0 deletions test/test_helper.rb
@@ -1,3 +1,4 @@
require 'pathname'
require 'rubygems' require 'rubygems'
require 'test/unit' require 'test/unit'
require 'shoulda' require 'shoulda'
Expand All @@ -11,4 +12,7 @@
require 'google_weather' require 'google_weather'


class Test::Unit::TestCase class Test::Unit::TestCase
def fixture_file(path)
Pathname(__FILE__).dirname.join(*path.split('/')).read
end
end end

0 comments on commit 8aabca5

Please sign in to comment.