Sha256: 5b77d5852275d26151bec27398ef7d760124f67c69765a700fa6e112244f9847

Contents?: true

Size: 510 Bytes

Versions: 1

Compression:

Stored size: 510 Bytes

Contents

require_relative "../spec_helper"

include GivenFilesystemSpecHelpers

describe YSI::PushedCode do
  use_given_filesystem

  it "pushes code" do
    expect_any_instance_of(YSI::Git).to receive(:push).and_return("pushed")
    dir = given_directory
    setup_test_git_repo("007", dir)

    engine = YSI::Engine.new
    assertion = YSI::PushedCode.new(engine)
    Dir.chdir(File.join(dir, "red_herring")) do
      expect(assertion.check).to be(nil)
      expect(assertion.assert).to eq "pushed"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yes_ship_it-0.0.5 spec/unit/assertions/pushed_code_spec.rb