spec/writer_spec.rb in alephant-publisher-queue-2.1.4 vs spec/writer_spec.rb in alephant-publisher-queue-2.2.0
- old
+ new
@@ -7,11 +7,11 @@
:msg_vary_id_path => "$.vary",
:renderer_id => :renderer_id,
:s3_bucket_id => :s3_bucket_id,
:s3_object_path => :s3_object_path,
:sequence_id_path => "$.sequence",
- :sequencer_table_name => :sequencer_table_name,
+ :sequencer_table_name => "sequencer_table_name",
:view_path => :view_path
}
end
before(:each) do
@@ -21,20 +21,22 @@
.with(
opts[:s3_bucket_id],
opts[:s3_object_path]
)
-
allow_any_instance_of(
Alephant::Sequencer::SequenceTable
- ).to receive(:create)
+ ).to receive_messages(
+ :create => nil,
+ :sequence_exists => nil
+ )
-
allow_any_instance_of(Alephant::Sequencer::Sequencer)
.to receive_messages(
:sequencer_id_from => nil,
:set_last_seen => nil,
- :get_last_seen => nil
+ :get_last_seen => nil,
+ :exists? => nil
)
allow_any_instance_of(Alephant::Lookup::LookupTable)
.to receive_messages(
:create => nil,