Sha256: 050a96575abe2dc4459bf34f28276c3df89fbe93d9da9a1081aa77cd3d2a4a39

Contents?: true

Size: 707 Bytes

Versions: 31

Compression:

Stored size: 707 Bytes

Contents

require 'spec_helper'
require "active_support/time"

describe ACTV::Evergreen do
  before do
    stub_get("/v2/assets/valid_evergreen.json").to_return(body: fixture("valid_evergreen.json"), headers: { content_type: "application/json; charset=utf-8" })
    stub_get("/v2/assets/068487f1-807f-4fcd-8561-53740f80f6b3.json").to_return(body: fixture("valid_evergreen_child_1.json"), headers: { content_type: "application/json; charset=utf-8" })
  end

  subject { ACTV.event('valid_evergreen') }

  def format_date date
    date.strftime('%Y-%m-%dT%H:%M:%S')
  end
  def format_date_in_utc date
    format_date(date) << ' UTC'
  end

  describe "evergreen?" do
    its(:evergreen?) { should be_true }
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
actv-2.10.9 spec/actv/evergreen_spec.rb
actv-2.10.8 spec/actv/evergreen_spec.rb
actv-2.10.7 spec/actv/evergreen_spec.rb
actv-2.10.6 spec/actv/evergreen_spec.rb
actv-2.10.5 spec/actv/evergreen_spec.rb
actv-2.10.4 spec/actv/evergreen_spec.rb
actv-2.10.3 spec/actv/evergreen_spec.rb
actv-2.10.2 spec/actv/evergreen_spec.rb
actv-2.10.1 spec/actv/evergreen_spec.rb
actv-2.10.0 spec/actv/evergreen_spec.rb
actv-2.9.2 spec/actv/evergreen_spec.rb
actv-2.9.1 spec/actv/evergreen_spec.rb
actv-2.9.0 spec/actv/evergreen_spec.rb
actv-2.8.2 spec/actv/evergreen_spec.rb
actv-2.8.1 spec/actv/evergreen_spec.rb
actv-2.7.0 spec/actv/evergreen_spec.rb
actv-2.6.0 spec/actv/evergreen_spec.rb
actv-2.5.2 spec/actv/evergreen_spec.rb
actv-2.5.1 spec/actv/evergreen_spec.rb
actv-2.5.0 spec/actv/evergreen_spec.rb