Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix a couple tests

  • Loading branch information...
commit 2df93ae5ace784c47d5babdb6cebd5dc76c5a70f 1 parent 84afc88
@brandonmwest brandonmwest authored
Showing with 4 additions and 2 deletions.
  1. +1 −0  Gemfile
  2. +3 −2 spec/ruby_rainmaker_spec.rb
View
1  Gemfile
@@ -16,4 +16,5 @@ group :development do
gem "faraday_middleware"
gem "simplecov"
gem "webmock"
+ gem "multi_json"
end
View
5 spec/ruby_rainmaker_spec.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.