-
Notifications
You must be signed in to change notification settings - Fork 96
RSpec tests fail on fresh fork #36
Comments
I haven't run the suite in a while. Going to mess with it tonight and report back. Perhaps I can do something clever with the VCR cassettes so we can commit them without sensitive data. |
You're looking for filter_sensitive_data. In your VCR configuration block, starting on line 7 of spec_helper.rb, you can do something like: VCR.configure do |c|
c.cassette_library_dir = '.cassettes'
c.hook_into :webmock
c.filter_sensitive_data('RANDOMGIBBERISH') { 'my-secret-harvest-password' }
end VCR.config and c.stub_with :webmock are deprecated. I've changed to VCR.configure and c.hook_into :webmock |
Nice. Thanks for the tip! |
I also got the same failing tests. |
I'm not sure yet if these failures are due to API bugs or the library. I'll investigate when I have some time. Also on |
This is what filter_sensitive data does. I'll mock up an example and submit a pull request. |
Cool, please do. I'm under the impression it's looking for tokens in an existing cassette and replaces it with what you specify in the configuration. If I can have the server calls to create the cassettes and use |
I believe @prsimp has a fully green suite locally. |
Closing this bad boy now that @prsimp green'd up our suite. |
I forked the repo, created a new harvest account, updated my harvest_credentials.yml, and ran RSpec.
On my first attempt, I received this error:
This was resolved by deleting the sample hour entry in Harvest.
My tests now run with seven failures. Before digging into each one, I wanted to see if there is some step I am missing a "out of the box" setup.
Has anyone been able to successfully run their tests off a fresh clone? I'm on ruby 1.9.3.
The text was updated successfully, but these errors were encountered: