summaryrefslogtreecommitdiff
path: root/spec/models/build_spec.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-08-30 18:16:57 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-08-30 18:16:57 -0400
commit251ca535cbc373db51c51ceef1eed603bb9760e3 (patch)
treee896a1614d859b881e764709b0392105cd8fd88a /spec/models/build_spec.rb
parentfda96b4b8ee82eb19ad4e0d061143813b64b4e2b (diff)
downloadgitlab-ci-251ca535cbc373db51c51ceef1eed603bb9760e3.tar.gz
`be_(false|true)` -> `be_(falsey|truthy)`
Diffstat (limited to 'spec/models/build_spec.rb')
-rw-r--r--spec/models/build_spec.rb22
1 files changed, 11 insertions, 11 deletions
diff --git a/spec/models/build_spec.rb b/spec/models/build_spec.rb
index 7333981..ea6b08a 100644
--- a/spec/models/build_spec.rb
+++ b/spec/models/build_spec.rb
@@ -69,14 +69,14 @@ describe Build do
context 'without started_at' do
before { build.started_at = nil }
- it { should be_false }
+ it { should be_falsey }
end
%w(running success failed).each do |status|
context "if build status is #{status}" do
before { build.status = status }
- it { should be_true }
+ it { should be_truthy }
end
end
@@ -84,7 +84,7 @@ describe Build do
context "if build status is #{status}" do
before { build.status = status }
- it { should be_false }
+ it { should be_falsey }
end
end
end
@@ -96,7 +96,7 @@ describe Build do
context "if build.status is #{state}" do
before { build.status = state }
- it { should be_true }
+ it { should be_truthy }
end
end
@@ -104,7 +104,7 @@ describe Build do
context "if build.status is #{state}" do
before { build.status = state }
- it { should be_false }
+ it { should be_falsey }
end
end
end
@@ -116,7 +116,7 @@ describe Build do
context "if build.status is #{state}" do
before { build.status = state }
- it { should be_true }
+ it { should be_truthy }
end
end
@@ -124,7 +124,7 @@ describe Build do
context "if build.status is #{state}" do
before { build.status = state }
- it { should be_false }
+ it { should be_falsey }
end
end
end
@@ -138,13 +138,13 @@ describe Build do
context 'and build.status is success' do
before { build.status = 'success' }
- it { should be_false }
+ it { should be_falsey }
end
context 'and build.status is failed' do
before { build.status = 'failed' }
- it { should be_false }
+ it { should be_falsey }
end
end
@@ -154,13 +154,13 @@ describe Build do
context 'and build.status is success' do
before { build.status = 'success' }
- it { should be_false }
+ it { should be_falsey }
end
context 'and build.status is failed' do
before { build.status = 'failed' }
- it { should be_true }
+ it { should be_truthy }
end
end
end