Sha256: 7a42d082d916234a91a6e6fe45eef64d0f2363643d2613388199b650a10018a9
Contents?: true
Size: 418 Bytes
Versions: 8
Compression:
Stored size: 418 Bytes
Contents
require 'spec_helper' require 'approvals/utilities/executable' describe Approvals::Executable do subject { Approvals::Executable.new('SELECT 1') } its(:inspect) { should eq('SELECT 1') } it "takes a block" do executable = Approvals::Executable.new('SELECT 1') do |command| "execute query: #{command}" end executable.on_failure.call('SELECT 1').should eq('execute query: SELECT 1') end end
Version data entries
8 entries across 8 versions & 1 rubygems