Skip to content

Commit

Permalink
add test for from/until
Browse files Browse the repository at this point in the history
  • Loading branch information
lsat12357 committed Nov 17, 2015
1 parent c7fa4b6 commit 5c901e2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@
expect(subject.find(:all, :resumption_token => middle_result.token.send(:encode_conditions))).to eq [generic_asset_1]
end
end
context "when given a date range that ends prior to today" do
it "should return 0 records" do
expect(subject.find(:all, :from => "2010-01-01", :until=>"2013-12-31").length).to eq 0
end
end
context "when given an id" do
it "should return that record" do
expect(subject.find(generic_asset_1.pid).title).to eq generic_asset_1.title
Expand Down

0 comments on commit 5c901e2

Please sign in to comment.