Skip to content

Instantly share code, notes, and snippets.

@doolin
Last active June 15, 2017 20:33
Show Gist options
  • Select an option

  • Save doolin/708431bde9bc889a77c9e65b9b2e860f to your computer and use it in GitHub Desktop.

Select an option

Save doolin/708431bde9bc889a77c9e65b9b2e860f to your computer and use it in GitHub Desktop.
#!/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
@doolin

doolin commented Jun 14, 2017

Copy link
Copy Markdown
Author

Yes this is an autogenerated file.

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