Skip to content

Commit

Permalink
Fix failing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
shiau committed Jan 3, 2014
1 parent 095ae2e commit 11d9c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/model_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class TestModel < Mogli::Model
describe "Fetching" do

it "fetches data for a model with an id " do
Mogli::Client.should_receive(:get).with("https://graph.facebook.com/1", :query=>{}).and_return({:id=>1,:other_property=>2})
Mogli::Client.should_receive(:get).with("https://graph.facebook.com/1", :query=>{:fields=>""}).and_return({:id=>1,:other_property=>2})
model.fetch
model.other_property.should == 2
end
Expand Down

0 comments on commit 11d9c41

Please sign in to comment.