diff options
author | Henare Degan <henare.degan@gmail.com> | 2012-08-11 18:23:21 +1000 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2012-08-11 18:23:21 +1000 |
commit | f682e37bf6dfa7dcbeafe683c764ff1acf3d71e5 (patch) | |
tree | 90588e3139fda7ea8ca3ace2b554e3e5562fe055 /spec/controllers | |
parent | b8eb037d671021ed1604e4ab907c84fe16211e5a (diff) |
Add failing test showing a bug when clicking 'Import from CSV file' on the admin public authorities page
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/admin_public_body_controller_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/controllers/admin_public_body_controller_spec.rb b/spec/controllers/admin_public_body_controller_spec.rb index 55a6649b2..6d6e7c1ba 100644 --- a/spec/controllers/admin_public_body_controller_spec.rb +++ b/spec/controllers/admin_public_body_controller_spec.rb @@ -70,6 +70,13 @@ describe AdminPublicBodyController, "when administering public bodies" do response.should redirect_to(:action=>'list') PublicBody.find_by_tag("department").count.should == n end + + describe 'import_csv' do + it 'should get the page successfully' do + get :import_csv + response.should be_success + end + end end describe AdminPublicBodyController, "when administering public bodies and paying attention to authentication" do |