Skip to content

Instantly share code, notes, and snippets.

@jasonwebster
Created April 7, 2016 19:04
Show Gist options
  • Save jasonwebster/06349d56a51e311042523138f71ecae0 to your computer and use it in GitHub Desktop.
Save jasonwebster/06349d56a51e311042523138f71ecae0 to your computer and use it in GitHub Desktop.
12:04:15 - INFO - Running: spec/serializers/activity_serializer_spec.rb
DEPRECATION WARNING: ** Notice: include was renamed to embed_in_root. **
. (called from <class:DuplicationSerializer> at /Users/jason/Projects/flow_api/app/serializers/duplication_serializer.rb:5)
Run options: include {:focus=>true}
ActivitySerializer
read_at
false
false
includes read attributes if available (FAILED - 1)
Failures:
1) ActivitySerializer read_at includes read attributes if available
Failure/Error:
expect(activity_json).to include({
:read => true,
:read_at => String
})
expected {:id => nil, :workspace_id => nil, :account_id => 15675, :action => "add_comment", :target_id => 66, :target_type => "Task", :created_at => nil, :updated_at => nil, :payload => {}, :subscriber_ids => [4, 5], :recipient_ids => []} to include {:read => true, :read_at => String}
Diff:
@@ -1,2 +1,12 @@
-[{:read=>true, :read_at=>String}]
+:account_id => 15675,
+:action => "add_comment",
+:created_at => nil,
+:id => nil,
+:payload => {},
+:recipient_ids => [],
+:subscriber_ids => [4, 5],
+:target_id => 66,
+:target_type => "Task",
+:updated_at => nil,
+:workspace_id => nil,
# ./spec/serializers/activity_serializer_spec.rb:99:in `block (3 levels) in <top (required)>'
Top 1 slowest examples (0.28219 seconds, 58.5% of total time):
ActivitySerializer read_at includes read attributes if available
0.28219 seconds ./spec/serializers/activity_serializer_spec.rb:98
Finished in 0.48225 seconds (files took 5.98 seconds to load)
1 example, 1 failure
Failed examples:
rspec ./spec/serializers/activity_serializer_spec.rb:98 # ActivitySerializer read_at includes read attributes if available
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment