diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-12-01 13:59:00 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-12-01 19:31:49 +0300 |
commit | 2791226c6b59db62b76bf4f5c4f4f945e9760eaa (patch) | |
tree | 5bcae0445e0839cced0c246093259db3e083f116 /spec/serializers/pipeline_serializer_spec.rb | |
parent | 57b1976976c2631299e20465e5633652d2753a6f (diff) |
Remove support from incremental pipeline updates
Diffstat (limited to 'spec/serializers/pipeline_serializer_spec.rb')
-rw-r--r-- | spec/serializers/pipeline_serializer_spec.rb | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/spec/serializers/pipeline_serializer_spec.rb b/spec/serializers/pipeline_serializer_spec.rb index c4eba2f2537..f6b7d1eb1dd 100644 --- a/spec/serializers/pipeline_serializer_spec.rb +++ b/spec/serializers/pipeline_serializer_spec.rb @@ -11,26 +11,5 @@ describe PipelineSerializer do let(:user) { create(:user) } - context 'when using incremental serializer' do - let(:json) do - serializer.incremental(pipelines, time).as_json - end - - context 'when pipeline has been already updated' do - let(:time) { Time.now } - - it 'exposes only minimal information' do - expect(json.first.keys).to contain_exactly(:id, :url) - expect(json.second.keys).to contain_exactly(:id, :url) - end - end - - context 'when pipeline updated in the meantime' do - let(:time) { Time.now - 10.minutes } - - it 'exposes new data incrementally' do - expect(json.first.keys.count).to eq 9 - end - end - end + # TODO add some tests here. end |