Sha256: 989c4a8fdb0b4c408f4f404daa52173998ea1f0122097ae75e800bc2efdc942e
Contents?: true
Size: 1.09 KB
Versions: 12
Compression:
Stored size: 1.09 KB
Contents
require "pact_broker/ui/view_models/matrix_deployed_version" module PactBroker module UI module ViewDomain describe MatrixDeployedVersion do before do allow(subject).to receive(:deployed_version_url).and_return("http://deployed_version") allow(subject).to receive(:hal_browser_url) do | url | "http://halbrowser#" + url end end subject(:matrix_deployed_version) { MatrixDeployedVersion.new(deployed_version) } let(:deployed_version) do instance_double("PactBroker::Deployments::DeployedVersion", environment: environment, created_at: created_at ) end let(:created_at) { DateTime.now - 1 } let(:environment) { instance_double("PactBroker::Deployments::Environment", name: "test", display_name: "Test") } its(:environment_name) { is_expected.to eq "test" } its(:tooltip) { is_expected.to eq "Currently deployed to Test (1 day ago)" } its(:url) { is_expected.to eq "http://halbrowser#http://deployed_version" } end end end end
Version data entries
12 entries across 12 versions & 1 rubygems