aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/admin_raw_email_controller_spec.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2014-11-04 09:13:49 +0000
committerLouise Crow <louise.crow@gmail.com>2014-12-12 16:47:14 +0000
commit3d295b6a69ddd3a3a0cea95a383ee8757f61ed2a (patch)
tree773c95b3b8c2d7fbfed8d0bbc975428acd7ad3da /spec/controllers/admin_raw_email_controller_spec.rb
parent081c419f665db454b98d8edb60eb67d9d8884c07 (diff)
Make show_raw_email a RESTful action via GET
Move specs that involve receiving email and then viewing the interface to be integration specs, which is what they really are.
Diffstat (limited to 'spec/controllers/admin_raw_email_controller_spec.rb')
-rw-r--r--spec/controllers/admin_raw_email_controller_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/controllers/admin_raw_email_controller_spec.rb b/spec/controllers/admin_raw_email_controller_spec.rb
new file mode 100644
index 000000000..c1e939ee1
--- /dev/null
+++ b/spec/controllers/admin_raw_email_controller_spec.rb
@@ -0,0 +1,14 @@
+require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+
+describe AdminRawEmailController do
+
+ describe :show do
+
+ it 'renders the show template' do
+ raw_email = FactoryGirl.create(:incoming_message).raw_email
+ get :show, :id => raw_email.id
+ end
+
+ end
+
+end