Created
March 8, 2011 22:01
-
-
Save knewter/861181 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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