rspec / rspec-mocks

RSpec's 'test double' framework, with support for stubbing and mocking
https://rspec.info
MIT License
1.16k stars 358 forks source link

How to stub yaml and write rspec #1427

Closed krvicky31 closed 3 years ago

krvicky31 commented 3 years ago

How to write rspec with stubing

def rules_to_run @checks_to_run = YAML.safe_load(File.read('lib/property.yaml')) end -->

Your environment

Expected behavior

Actual behavior

Not able to write as stubing is not doing anything
pirj commented 3 years ago

https://rspec.info/help/ list resources where you can seek help. We strive to keep the issue tracker for bugs and enhancements.