Permalink
Browse files

fix a couple tests

  • Loading branch information...
brandonmwest committed May 28, 2011
1 parent 84afc88 commit 2df93ae5ace784c47d5babdb6cebd5dc76c5a70f
Showing with 4 additions and 2 deletions.
  1. +1 −0 Gemfile
  2. +3 −2 spec/ruby_rainmaker_spec.rb
View
@@ -16,4 +16,5 @@ group :development do
gem "faraday_middleware"
gem "simplecov"
gem "webmock"
+ gem "multi_json"
end
@@ -1,4 +1,5 @@
require 'helper'
+require 'multi_json'
describe RubyRainmaker do
after do
@@ -14,14 +15,14 @@
end
it "should get the correct resource" do
- RubyRainmaker.person('lorangb@gmail.com')
+ RubyRainmaker.person(:email => "lorangb@gmail.com")
a_get("person.json").
with(:query => {:email => "lorangb@gmail.com"}).
should have_been_made
end
it "should return the same results as a client" do
- RubyRainmaker.person('lorangb@gmail.com').should == RubyRainmaker::Client.new.person('lorangb@gmail.com')
+ RubyRainmaker.person(:email => "lorangb@gmail.com").should == RubyRainmaker::Client.new.person('lorangb@gmail.com')
end
end

0 comments on commit 2df93ae

Please sign in to comment.