Sha256: 733778661c9a0ff91d38fc3965fc6edb42da71658f668281239a5a0f4fb0839e

Contents?: true

Size: 759 Bytes

Versions: 11

Compression:

Stored size: 759 Bytes

Contents

require 'spec_helper'
require 'approvals/reporters/launcher'

describe Approvals::Reporters::Launcher do
  it "has a vimdiff launcher" do
    expect(described_class.vimdiff.call('one', 'two')).to eq("vimdiff one two")
  end

  it "has an opendiff launcher" do
    expect(described_class.opendiff.call('one', 'two')).to eq("opendiff one two")
  end

  it "has a diffmerge launcher" do
    expect(described_class.diffmerge.call('one', 'two')).to match(/DiffMerge.*\"one\"\ \"two\"/)
  end

  it "has a tortoisediff launcher" do
    expect(described_class.tortoisediff.call('one', 'two')).to match(/TortoiseMerge.exe.*one.*two/)
  end

  it "has a filelauncher launcher" do
    expect(described_class.filelauncher.call('one', 'two')).to eq("open one")
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
approvals-0.1.7 spec/reporters/launcher_spec.rb
approvals-0.0.26 spec/reporters/launcher_spec.rb
approvals-0.0.25 spec/reporters/launcher_spec.rb
approvals-0.0.24 spec/reporters/launcher_spec.rb
br-approvals-0.0.22 spec/reporters/launcher_spec.rb
approvals-0.0.22 spec/reporters/launcher_spec.rb
approvals-0.0.21 spec/reporters/launcher_spec.rb
approvals-0.0.20 spec/reporters/launcher_spec.rb
approvals-0.0.19 spec/reporters/launcher_spec.rb
approvals-0.0.18 spec/reporters/launcher_spec.rb
approvals-0.0.17 spec/reporters/launcher_spec.rb