Skip to content
This repository has been archived by the owner on May 10, 2018. It is now read-only.

Commit

Permalink
Remove #matrix_state specs
Browse files Browse the repository at this point in the history
These aren't needed
  • Loading branch information
BanzaiMan committed Jan 14, 2014
1 parent 7c17018 commit 8470f8a
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions spec/travis/model/build/matrix_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,36 +95,6 @@
build.matrix_state.should == :errored
end

it 'returns :created if one job has been created' do
build.matrix[0].update_attributes!(state: "passed")
build.matrix[1].update_attributes!(state: "created")
build.matrix_state.should == :created
end

it 'returns :created if one job has been created, and the other been queued' do
build.matrix[0].update_attributes!(state: "queued")
build.matrix[1].update_attributes!(state: "created")
build.matrix_state.should == :created
end

it 'returns :queued if one job has been queued' do
build.matrix[0].update_attributes!(state: "passed")
build.matrix[1].update_attributes!(state: "queued")
build.matrix_state.should == :queued
end

it 'returns :queued if one job has been queued, and the other started' do
build.matrix[0].update_attributes!(state: "started")
build.matrix[1].update_attributes!(state: "queued")
build.matrix_state.should == :queued
end

it 'returns :started if one job has started' do
build.matrix[0].update_attributes!(state: "passed")
build.matrix[1].update_attributes!(state: "started")
build.matrix_state.should == :started
end

it 'returns :passed if a errored job is allowed to fail' do
build.matrix[0].update_attributes!(state: "passed")
build.matrix[1].update_attributes!(state: "errored", allow_failure: true)
Expand Down

0 comments on commit 8470f8a

Please sign in to comment.