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