From e0af7cefb4c92b474d14116b40927d70c13e78cc Mon Sep 17 00:00:00 2001 From: Andrew8xx8 <avk@8xx8.ru> Date: Mon, 25 Mar 2013 20:32:10 +0400 Subject: [PATCH] Typos fixed --- app/controllers/snippets_controller.rb | 4 ++-- features/snippets/snippets.feature | 2 +- features/steps/snippets/snippets.rb | 2 +- 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 -- GitLab