summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/controllers/snippets_controller.rb4
-rw-r--r--features/snippets/snippets.feature2
-rw-r--r--features/steps/snippets/snippets.rb2
3 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/snippets_controller.rb b/app/controllers/snippets_controller.rb
index 7c96b82379c..70525beea15 100644
--- a/app/controllers/snippets_controller.rb
+++ b/app/controllers/snippets_controller.rb
@@ -31,11 +31,11 @@ class SnippetsController < ApplicationController
end
def new
- @snippet = PersonalSnippet.build
+ @snippet = PersonalSnippet.new
end
def create
- @snippet = PersonalSnippet.build(params[:personal_snippet])
+ @snippet = PersonalSnippet.new(params[:personal_snippet])
@snippet.author = current_user
if @snippet.save
diff --git a/features/snippets/snippets.feature b/features/snippets/snippets.feature
index ebb4a7c0719..1119defa17d 100644
--- a/features/snippets/snippets.feature
+++ b/features/snippets/snippets.feature
@@ -1,4 +1,4 @@
-Feature: Snippets
+Feature: Snippets Feature
Background:
Given I sign in as a user
And I have public "Personal snippet one" snippet
diff --git a/features/steps/snippets/snippets.rb b/features/steps/snippets/snippets.rb
index 0ab636543a9..b185f605728 100644
--- a/features/steps/snippets/snippets.rb
+++ b/features/steps/snippets/snippets.rb
@@ -1,4 +1,4 @@
-class Snippets < Spinach::FeatureSteps
+class SnippetsFeature < Spinach::FeatureSteps
include SharedAuthentication
include SharedPaths
include SharedProject