spec/flydata/api/data_entry_spec.rb in flydata-0.7.8 vs spec/flydata/api/data_entry_spec.rb in flydata-0.7.9
- old
+ new
@@ -175,12 +175,12 @@
end
end
end
context "with more than 100 tables" do
let(:tables) { 180.times.collect{|i| "tbl#{i}"} }
- let(:expected_tables1) { tables[0...150].join(",") }
- let(:expected_tables2) { tables[150..-1].join(",") }
+ let(:expected_tables1) { tables[0...110].join(",") }
+ let(:expected_tables2) { tables[110..-1].join(",") }
let(:expected_message) { double('expected_message') }
context "when no error" do
shared_examples "calling api twice and return combined result" do
@@ -318,11 +318,11 @@
let(:status21) { double('status21') }
let(:status22) { double('status22') }
context "with more than 100 tables" do
let(:tables) { 180.times.collect {|i| "tbl#{i}"} }
- let(:expected_tables1) { tables[0...150].join(",") }
- let(:expected_tables2) { tables[150..-1].join(",") }
+ let(:expected_tables1) { tables[0...110].join(",") }
+ let(:expected_tables2) { tables[110..-1].join(",") }
it do
expect(api_client).to receive(:post).
with("/data_entries/#{data_entry_id}/table_status",
nil, tables: expected_tables1).