Sha256: d3effd9c5f5a4f82aa003f69bcb1119f267376522a4ac5505c06c812e2c07dfc
Contents?: true
Size: 664 Bytes
Versions: 6
Compression:
Stored size: 664 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Sinclair::MethodDefinition::StringDefinition do let(:klass) { Class.new } let(:instance) { klass.new } describe '#build' do subject(:method_definition) do described_class.new(method_name, code) end let(:method_name) { :the_method } let(:code) { '@x = @x.to_i + 1' } it_behaves_like 'MethodDefinition#build without cache' context 'with cached options' do subject(:method_definition) do described_class.from(method_name, code, cached: cached_option) end it_behaves_like 'MethodDefinition#build with cache options' end end end
Version data entries
6 entries across 6 versions & 1 rubygems