test/resource_test.rb in loquor-0.4.0 vs test/resource_test.rb in loquor-0.5.0

- old
+ new

@@ -23,9 +23,15 @@ Foobar.find_each do |json| ids << json['id'] end end + def test_select_should_proxy + args = {a: 'b'} + Loquor::ApiCall::Index.any_instance.expects(:select).with(args) + Foobar.select(args) + end + def test_where_should_get_correct_path_with_simple_path email = "foobar" Loquor.expects(:get).with("/foobar?email=#{email}").returns([]) Foobar.where(email: email).to_a end