Sha256: 93e31dc0b2dfe93cfbeacd0cf778b6bbe485aec6676104ea89b4ecb0e33e4ebf
Contents?: true
Size: 672 Bytes
Versions: 1
Compression:
Stored size: 672 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Sinclair::MethodDefinition::ClassBlockDefinition do let(:klass) { Class.new } describe '#build' do subject(:method_definition) do described_class.new(method_name) do @x = @x.to_i + 1 end end let(:method_name) { :the_method } it_behaves_like 'ClassMethodDefinition#build without cache' context 'with cached options' do subject(:method_definition) do described_class.new(method_name, cached: cached_option) do @x = @x.to_i + 1 end end it_behaves_like 'ClassMethodDefinition#build with cache options' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sinclair-1.4.2 | spec/lib/sinclair/method_definition/class_block_definition_spec.rb |