Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew8xx8 <avk@8xx8.ru>2013-02-13 15:48:16 +0400
committerAndrew8xx8 <avk@8xx8.ru>2013-02-13 15:48:16 +0400
commit839957cf56acb905afc18605c0579d07083e0d37 (patch)
tree26d360e900fbd31548f269fa62bc504b419c1398 /features/steps/dashboard
parentb9f8b4019073fe60515bda8947d9040b4b73ea38 (diff)
Constants in Events looks good now
Diffstat (limited to 'features/steps/dashboard')
-rw-r--r--features/steps/dashboard/dashboard.rb4
-rw-r--r--features/steps/dashboard/dashboard_event_filters.rb6
2 files changed, 5 insertions, 5 deletions
diff --git a/features/steps/dashboard/dashboard.rb b/features/steps/dashboard/dashboard.rb
index 8c13ad0e151..c6832056435 100644
--- a/features/steps/dashboard/dashboard.rb
+++ b/features/steps/dashboard/dashboard.rb
@@ -33,7 +33,7 @@ class Dashboard < Spinach::FeatureSteps
Event.create(
project: project,
author_id: user.id,
- action: Event::Joined
+ action: Event::JOINED
)
end
@@ -47,7 +47,7 @@ class Dashboard < Spinach::FeatureSteps
Event.create(
project: project,
author_id: user.id,
- action: Event::Left
+ action: Event::LEFT
)
end
diff --git a/features/steps/dashboard/dashboard_event_filters.rb b/features/steps/dashboard/dashboard_event_filters.rb
index bfc053631ab..afa15c31332 100644
--- a/features/steps/dashboard/dashboard_event_filters.rb
+++ b/features/steps/dashboard/dashboard_event_filters.rb
@@ -45,7 +45,7 @@ class EventFilters < Spinach::FeatureSteps
@event = Event.create(
project: @project,
- action: Event::Pushed,
+ action: Event::PUSHED,
data: data,
author_id: @user.id
)
@@ -56,7 +56,7 @@ class EventFilters < Spinach::FeatureSteps
Event.create(
project: @project,
author_id: user.id,
- action: Event::Joined
+ action: Event::JOINED
)
end
@@ -64,7 +64,7 @@ class EventFilters < Spinach::FeatureSteps
merge_request = create :merge_request, author: @user, project: @project
Event.create(
project: @project,
- action: Event::Merged,
+ action: Event::MERGED,
target_id: merge_request.id,
target_type: "MergeRequest",
author_id: @user.id