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

Version Path
approvals-0.0.12 spec/utilities/executable_spec.rb
approvals-0.0.11 spec/utilities/executable_spec.rb
approvals-0.0.10 spec/utilities/executable_spec.rb
approvals-0.0.9 spec/utilities/executable_spec.rb
approvals-0.0.8 spec/utilities/executable_spec.rb
approvals-0.0.7 spec/utilities/executable_spec.rb
approvals-0.0.6 spec/utilities/executable_spec.rb
approvals-0.0.5 spec/utilities/executable_spec.rb