Sha256: b6b4fb2593f071f790d8b8fb85c19137deafe8535d34bb5ea206a8368c72f8be
Contents?: true
Size: 628 Bytes
Versions: 1
Compression:
Stored size: 628 Bytes
Contents
require 'spec_helper' class Eggplant # @rspec_example def instance_method end end describe Eggplant do subject { -> { Eggplant.new.instance_method } } it { is_expected.not_to raise_error } end describe 'rspec_examples' do context 'with inline examples' do before { YARD.parse(__FILE__) } subject do output = YARD::Registry.all(:class).find { |i| i.to_s == "Eggplant" } output = YARD::Templates::Engine.render(OPTIONS.merge(:object => output)) Nokogiri.HTML(output).css('.examples .example').map(&:text) end it { is_expected.to include 'is_expected.not_to raise_error' } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yard-rspec_examples-0.0.2 | spec/inline_examples_spec.rb |