Sha256: b116e17c6338b2877c893b9cd28b1b37fd5699a884e89089699bfc4832195a4a
Contents?: true
Size: 1.16 KB
Versions: 2
Compression:
Stored size: 1.16 KB
Contents
require 'spec_helper' require 'torkify/event/status_change_event' require 'torkify/event/pass_or_fail_event' module Torkify::Event describe StatusChangeEvent do context "with a pass_now_fail event" do before do @type = 'pass_now_fail' @file = 'file' @inner_event = PassOrFailEvent.new(*(1..7)) @event = StatusChangeEvent.new(@type, @file, @inner_event) end subject { @event } its(:type) { should == @type } its(:file) { should == @file } its(:event) { should == @inner_event } its(:to_s) { should == 'PASS NOW FAIL file' } its(:message) { should == :on_pass_now_fail } end context "with a fail_now_pass event" do before do @type = 'fail_now_pass' @file = 'file' @inner_event = PassOrFailEvent.new(*(1..7)) @event = StatusChangeEvent.new(@type, @file, @inner_event) end subject { @event } its(:type) { should == @type } its(:file) { should == @file } its(:event) { should == @inner_event } its(:to_s) { should == 'FAIL NOW PASS file' } its(:message) { should == :on_fail_now_pass } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
torkify-0.0.3 | spec/event/status_change_event_spec.rb |
torkify-0.0.2 | spec/event/status_change_event_spec.rb |