Skip to content

Commit

Permalink
Fixes a List test
Browse files Browse the repository at this point in the history
  • Loading branch information
vesan committed Jul 7, 2013
1 parent 03d32a3 commit 4a70dd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/kippt/list_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
let(:client) { Kippt::Client.new(valid_user_credentials) }
let(:collection_resource_class) { Kippt::Lists }

let(:data) { MultiJson.load(fixture("list.json").read) }
let(:data) { json_fixture("list.json") }
let(:attributes) {
[:id, :rss_url, :title,
:slug, :resource_uri]
Expand All @@ -27,7 +27,7 @@

describe "#collaborators" do
it "returns the users generated from the data" do
list = Kippt::List.new({"collaborators" => {"count" => 1, "data" => [fixture("user.json")]}}, nil)
list = Kippt::List.new({"collaborators" => {"count" => 1, "data" => [json_fixture("user.json")]}}, nil)
list.collaborators.size.should eq 1
list.collaborators.first.should be_a Kippt::User
end
Expand Down

0 comments on commit 4a70dd0

Please sign in to comment.