spec/helpers_spec.rb in overview-0.0.8.pre.28 vs spec/helpers_spec.rb in overview-0.0.9.pre.30

- old
+ new

@@ -262,11 +262,11 @@ RSpec.describe 'Sprintly#retrieveSprintlyItem' do it 'returns hackpad item' do cache = Cache.new sprintly = Sprintly.new(30420,"jono+overview+test@overllc.com", "kPnNLnM8pjkYeS9sMvrQPhj6JkC4mcNL", cache) item = sprintly.sprintly_item(1) - expect(item.hackpads.count).to eq(1) + expect(item.specs.count).to eq(1) end end RSpec.describe 'Sprintly#retrieveSprintlyItem' do it 'returns sprintly item with id' do @@ -280,21 +280,30 @@ RSpec.describe 'Sprintly#retrieveSprintlyItem.allHackpads' do it 'returns single hackpad item' do cache = Cache.new sprintly = Sprintly.new(30420,"jono+overview+test@overllc.com", "kPnNLnM8pjkYeS9sMvrQPhj6JkC4mcNL", cache) item = sprintly.sprintly_item(2) - expect(item.hackpads.count).to eq(0) - expect(item.all_hackpads.count).to eq(1) + expect(item.specs.count).to eq(0) + expect(item.all_specs.count).to eq(1) end end RSpec.describe 'Sprintly#retrieveSprintlyItem.allHackpads' do it 'returns multiple hackpad items' do cache = Cache.new sprintly = Sprintly.new(30420,"jono+overview+test@overllc.com", "kPnNLnM8pjkYeS9sMvrQPhj6JkC4mcNL", cache) item = sprintly.sprintly_item(4) - expect(item.hackpads.count).to eq(1) - expect(item.all_hackpads.count).to eq(2) + expect(item.specs.count).to eq(1) + expect(item.all_specs.count).to eq(2) + end +end + +RSpec.describe 'sprintly_item supports Dropbox notes' do + it 'returns single dropbox note item' do + cache = Cache.new + sprintly = Sprintly.new(30420,"jono+overview+test@overllc.com", "kPnNLnM8pjkYeS9sMvrQPhj6JkC4mcNL", cache) + item = sprintly.sprintly_item(5) + expect(item.specs.count).to eq(1) end end RSpec.describe 'Sprintly#retrieveSprintlyItem.inspect' do