summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-03-21 09:09:59 +0100
committerDouwe Maan <douwe@selenight.nl>2016-03-21 09:09:59 +0100
commit261569b2466e455ff308cc54fb1db51bc8dc2880 (patch)
treed150ac6c11c189e36d6d79f315c58f047574f6b9 /spec
parentb689e2c0e0d0ad4303d99150c843ef914f1fd516 (diff)
downloadgitlab-ce-261569b2466e455ff308cc54fb1db51bc8dc2880.tar.gz
Fix specs
Diffstat (limited to 'spec')
-rw-r--r--spec/controllers/projects/avatars_controller_spec.rb2
-rw-r--r--spec/factories/broadcast_messages.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/projects/avatars_controller_spec.rb b/spec/controllers/projects/avatars_controller_spec.rb
index e79b46a3504..4d724ca9ed0 100644
--- a/spec/controllers/projects/avatars_controller_spec.rb
+++ b/spec/controllers/projects/avatars_controller_spec.rb
@@ -6,7 +6,7 @@ describe Projects::AvatarsController do
before do
sign_in(user)
- project.team << [user, :developer]
+ project.team << [user, :master]
controller.instance_variable_set(:@project, project)
end
diff --git a/spec/factories/broadcast_messages.rb b/spec/factories/broadcast_messages.rb
index 373ca75467e..c80e7366551 100644
--- a/spec/factories/broadcast_messages.rb
+++ b/spec/factories/broadcast_messages.rb
@@ -15,7 +15,7 @@
FactoryGirl.define do
factory :broadcast_message do
message "MyText"
- starts_at Date.today
+ starts_at Date.yesterday
ends_at Date.tomorrow
trait :expired do