Skip to content

Instantly share code, notes, and snippets.

@rthbound
Created September 17, 2014 21:05
Show Gist options
  • Save rthbound/9bf276e871c20719e8bc to your computer and use it in GitHub Desktop.
Save rthbound/9bf276e871c20719e8bc to your computer and use it in GitHub Desktop.
describe "as an instance" do
it "executes successfully" do
search = @subject.new(@params)
search_arguments = search.send(:arguments)
@search_client.expect(:search, {}, [search_arguments])
result = search.call
result.successful?.must_equal true
result.must_be_kind_of PayDirt::Result
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment