Permalink
Browse files

Add specs for Logs#all with actual results.

  • Loading branch information...
1 parent 7b2b5ea commit 10376458af0dacd64ab5a150f69d694d5a84b442 @tylerhunt committed Jun 1, 2012
Showing with 115 additions and 7 deletions.
  1. +102 −5 spec/fixtures/logs.yml
  2. +13 −2 spec/pew_pew/resources/logs_spec.rb
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,3 +1,5 @@
+# encoding: UTF-8
+
require 'spec_helper'
describe PewPew::Resources::Logs, :resource do
@@ -26,7 +28,16 @@
specify { should be_success }
its(:status) { should == 200 }
- its(:total_count) { should == 0 }
- its(:items) { should == [] }
+ its(:total_count) { should == 27 }
+
+ context 'item' do
+ subject { response.items.first }
+
+ its(:created_at) { should == 'Fri, 01 Jun 2012 04:19:04 GMT' }
+ its(:hap) { should == 'delivered' }
+ its(:message) { should == "Delivered: postmaster@pewpew.mailgun.org → pewpew@devoh.com 'Test'" }
+ its(:message_id) { should == '4fc84273c474_48dd3fe70cc34cd05949d@rouge.local.mail' }
+ its(:type) { should == 'info' }
+ end
end
end

0 comments on commit 1037645

Please sign in to comment.