Commit e0af7cefb4c92b474d14116b40927d70c13e78cc

Authored by Andrew8xx8
1 parent 03de5a5c

Typos fixed

app/controllers/snippets_controller.rb
@@ -31,11 +31,11 @@ class SnippetsController < ApplicationController @@ -31,11 +31,11 @@ class SnippetsController < ApplicationController
31 end 31 end
32 32
33 def new 33 def new
34 - @snippet = PersonalSnippet.build 34 + @snippet = PersonalSnippet.new
35 end 35 end
36 36
37 def create 37 def create
38 - @snippet = PersonalSnippet.build(params[:personal_snippet]) 38 + @snippet = PersonalSnippet.new(params[:personal_snippet])
39 @snippet.author = current_user 39 @snippet.author = current_user
40 40
41 if @snippet.save 41 if @snippet.save
features/snippets/snippets.feature
1 -Feature: Snippets 1 +Feature: Snippets Feature
2 Background: 2 Background:
3 Given I sign in as a user 3 Given I sign in as a user
4 And I have public "Personal snippet one" snippet 4 And I have public "Personal snippet one" snippet
features/steps/snippets/snippets.rb
1 -class Snippets < Spinach::FeatureSteps 1 +class SnippetsFeature < Spinach::FeatureSteps
2 include SharedAuthentication 2 include SharedAuthentication
3 include SharedPaths 3 include SharedPaths
4 include SharedProject 4 include SharedProject