Files
openfoodnetwork/spec/requests/admin/reports_spec.rb
Rohan Mitchell 6d84cf7613 Merge branch 'master' into enterprises
Conflicts:
	app/controllers/enterprises_controller.rb
	app/views/spree/checkout/_distributor.html.haml
	db/schema.rb
	spec/lib/open_food_web/group_buy_report_spec.rb
2012-11-01 11:02:02 +11:00

52 lines
1018 B
Ruby

require "spec_helper"
feature %q{
As an administrator
I want numbers, all the numbers!
} do
include AuthenticationWorkflow
include WebHelper
scenario "orders and distributors report" do
login_to_admin_section
click_link 'Reports'
click_link 'Orders And Distributors'
page.should have_content 'Order date'
end
scenario "group buys report" do
login_to_admin_section
click_link 'Reports'
click_link 'Group Buys'
page.should have_content 'Supplier'
end
scenario "bulk co-op report" do
login_to_admin_section
click_link 'Reports'
click_link 'Bulk Co-Op'
page.should have_content 'Supplier'
end
scenario "payments reports" do
login_to_admin_section
click_link 'Reports'
click_link 'Payment Reports'
page.should have_content 'Payment State'
end
scenario "order cycle reports" do
login_to_admin_section
click_link 'Reports'
click_link 'Order Cycle Reports'
page.should have_content 'Supplier'
end
end