Skip to content

Instantly share code, notes, and snippets.

@pimeys
Created November 28, 2012 11:14
Show Gist options
  • Save pimeys/4160557 to your computer and use it in GitHub Desktop.
Save pimeys/4160557 to your computer and use it in GitHub Desktop.
Failing invoice test
it "should output a valid csv with collected invoices included", :js => true do
select 'new', :from => 'search_status_eq'
click_button 'Apply filter'
page.click_link 'Export Invoices'
page.text.should eql(<<-CSV)
Advertiser;Month;Invoice #;Amount;Difference;Status;Date sent;Collected
Name 0;September 2012;INVOICE0;-;-;new;;false
CSV
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment