Skip to content

Commit

Permalink
Update all flags test
Browse files Browse the repository at this point in the history
  • Loading branch information
jkodumal committed Jan 26, 2016
1 parent 39cf927 commit d8804c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/ldclient_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@

describe '#all_flags' do
it "will parse and return the features list" do
result = double("Faraday::Response", status: 200, body: '{"foo": {"key": "foo"}}')
result = double("Faraday::Response", status: 200, body: '{"asdf":"qwer"}')
expect(client).to receive(:make_request).with("/api/eval/features").and_return(result)
data = client.send(:all_flags)
expect(data).to eq {foo : {key: "foo"}}
expect(data).to eq(asdf: "qwer")
end
it "will log errors" do
result = double("Faraday::Response", status: 418)
Expand Down

0 comments on commit d8804c8

Please sign in to comment.