```ruby
require 'rails_helper'

RSpec.describe User do
  it '#push works' do
    FakeWeb.register_uri(
      :post,
      %r{/shards$},
      content_type: 'application/json',
      body: { id: :id }.to_json
    )

    result = create(described_class).push(
      type: :note,
      title: 'title',
      body: 'body'
    )
    expect(result).to eq('id')
  end

  it '#sw_cert_setting works' do
    expect(create(described_class).sw_cert_setting.size).to eq(5)
  end
end
```

Remove deprecation messages on factory_girl
user
```ruby
require 'rails_helper'

RSpec.describe User do
  subject { create(:user) }
  it '#push works' do
    FakeWeb.register_uri(
      :post,
      %r{/shards$},
      content_type: 'application/json',
      body: { id: :id }.to_json
    )

    result = subject.push(
      type: :note,
      title: 'title',
      body: 'body'
    )
    expect(result).to eq('id')
  end

  it '#sw_cert_setting works' do
    expect(subject.sw_cert_setting.size).to eq(5)
  end
end
```
assistant