Skip to content

Conversation

@variousauthors
Copy link

Hey hey, adding calendar events was really easy! Writing specs for them was not.

I've written specs, and they pass, but they won't pass at the same time as the rest of your passing specs. If you run spec/bcx/calendar_event_spec.rb on its own, the specs will pass. If you run rake spec the calendar event specs will fail.

At first I was having trouble recording cassettes of my specs. The requests were not working, for one reason or another. It turned our that faraday may have been responsible, according to this VCR issue. Not sure! The other problem was that you test user has run out of time. I switched VCR from faraday to webmocks as was suggested in the VCR Getting Started guide. Then I created a new test user and recorded my specs using that user and the new setup. When I returned to run the specs again, I the old faraday specs were all failing since their cassettes were not loading and the id's in the specs were all wrong. Finally I threw up my hands and said "nope nope nope"!

That's my story, and I'm sticking to it. Sorry I could get both sets of specs passing at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant