spec/procto_spec.rb in procto-0.0.1 vs spec/procto_spec.rb in procto-0.0.2
- old
+ new
@@ -33,12 +33,15 @@
end
context 'with a name' do
include_context 'procto'
+ let(:name) { double('name', to_sym: :print) }
+
let(:klass) do
+ method_name = name
Class.new do
- include Procto.call(:print)
+ include Procto.call(method_name)
def initialize(text)
@text = text
end