Skip to content

Instantly share code, notes, and snippets.

@knewter
Created March 8, 2011 22:01
Show Gist options
  • Save knewter/861181 to your computer and use it in GitHub Desktop.
Save knewter/861181 to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe ProgramManagerBatchInterface::Models::AccountInformationFile do
it "should start out pending" do
subject.state.should == 'pending'
end
it "should require a request_file in order to create"
it "should transition to uploaded once a file has been uploaded to the remote server"
it "should transition to downloaded once the corresponding response file has been downloaded and stored"
it "should transition to error if the downloaded file did not have a record per request file record or had an error node"
it "should respond to #process!"
it "should be in a processed state after a successful #process! call"
it "should be in an error state after a failed #process! call"
it "should run a lambda once per record during #process!"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment