Last active
June 15, 2017 20:33
-
-
Save doolin/708431bde9bc889a77c9e65b9b2e860f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # invoke with ./generated_example.rb -f d | |
| require 'rspec/autorun' | |
| public | |
| def solution(args) | |
| # code here | |
| end | |
| private | |
| # class documentation for rubocop | |
| class GeneratedExample | |
| def self.solution | |
| # code here | |
| end | |
| end | |
| RSpec.shared_examples 'fixme' do | |
| it 'solves' do | |
| expect(described_class.solution(['args'])).to be nil | |
| end | |
| end | |
| RSpec.describe self do | |
| include_examples 'fixme' | |
| end | |
| RSpec.describe GeneratedExample do | |
| include_examples 'fixme' | |
| end |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes this is an autogenerated file.