spec/flydata/api/data_entry_spec.rb in flydata-0.8.6 vs spec/flydata/api/data_entry_spec.rb in flydata-0.8.7

- old
+ new

@@ -173,14 +173,14 @@ it_behaves_like "calling api once and return expected result" end end end - context "with more than 50 tables" do - let(:tables) { 80.times.collect{|i| "tbl#{i}"} } - let(:expected_tables1) { tables[0...50].join(",") } - let(:expected_tables2) { tables[50..-1].join(",") } + context "with more than 20 tables" do + let(:tables) { 30.times.collect{|i| "tbl#{i}"} } + let(:expected_tables1) { tables[0...20].join(",") } + let(:expected_tables2) { tables[20..-1].join(",") } let(:expected_message) { double('expected_message') } context "when no error" do shared_examples "calling api twice and return combined result" do @@ -316,13 +316,13 @@ { "table_status" => [ status21, status22 ], "success" => true } } let(:status21) { double('status21') } let(:status22) { double('status22') } - context "with more than 50 tables" do - let(:tables) { 80.times.collect {|i| "tbl#{i}"} } - let(:expected_tables1) { tables[0...50].join(",") } - let(:expected_tables2) { tables[50..-1].join(",") } + context "with more than 20 tables" do + let(:tables) { 30.times.collect {|i| "tbl#{i}"} } + let(:expected_tables1) { tables[0...20].join(",") } + let(:expected_tables2) { tables[20..-1].join(",") } it do expect(api_client).to receive(:post). with("/data_entries/#{data_entry_id}/table_status", nil, tables: expected_tables1).