2016-11-16 06:01:10 -05:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
shared_examples 'default query config' do
|
2016-11-18 02:13:34 -05:00
|
|
|
let(:event) { described_class.new(project: double, options: {}) }
|
|
|
|
|
2016-11-16 06:01:10 -05:00
|
|
|
it 'has the start attributes' do
|
2016-11-18 02:13:34 -05:00
|
|
|
expect(event.start_time_attrs).not_to be_nil
|
2016-11-16 06:01:10 -05:00
|
|
|
end
|
|
|
|
|
2016-11-17 08:14:23 -05:00
|
|
|
it 'has the stage attribute' do
|
2016-11-18 02:13:34 -05:00
|
|
|
expect(event.stage).not_to be_nil
|
2016-11-17 08:14:23 -05:00
|
|
|
end
|
|
|
|
|
2016-11-16 06:01:10 -05:00
|
|
|
it 'has the end attributes' do
|
2016-11-18 02:13:34 -05:00
|
|
|
expect(event.end_time_attrs).not_to be_nil
|
2016-11-16 06:01:10 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
it 'has the projection attributes' do
|
2016-11-18 02:13:34 -05:00
|
|
|
expect(event.projections).not_to be_nil
|
2016-11-16 06:01:10 -05:00
|
|
|
end
|
|
|
|
end
|