require 'spec_helper'
require 'torkify/status_change_event'

module Torkify
  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(@test, @lines, @inner_event)
      end

      subject { @event }

      its(:type) { should == @test }
      its(:file) { should == @file }
      its(:event) { should == @inner_event }
    end
  end
end

require 'spec_helper'
require 'torkify/status_change_event'

module Torkify
  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(@test, @file, @inner_event)
      end

      subject { @event }

      its(:type)  { should == @test }
      its(:file)  { should == @file }
      its(:event) { should == @inner_event }
    end
  end
end

Fix status change event spec using wrong variable
Fix status change event spec using wrong variable
