Fix features specs (hopefully)
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
13804aba86
commit
0aaaae9d05
2 changed files with 4 additions and 4 deletions
|
@ -283,7 +283,7 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps
|
|||
end
|
||||
|
||||
step 'I click on "add a file" link' do
|
||||
click_link 'adding README'
|
||||
click_link 'adding a README'
|
||||
|
||||
# Remove pre-receive hook so we can push without auth
|
||||
FileUtils.rm_f(File.join(@project.repository.path, 'hooks', 'pre-receive'))
|
||||
|
|
|
@ -5,12 +5,12 @@ module API
|
|||
/[\<\{\[]
|
||||
(project|description|
|
||||
one\sline\s.+\swhat\sit\sdoes\.) # matching the start and end is enough here
|
||||
[\>\}\]]/xi
|
||||
YEAR_TEMPLATE_REGEX = /[<{\[](year|yyyy)[>}\]]/i
|
||||
[\>\}\]]/xi.freeze
|
||||
YEAR_TEMPLATE_REGEX = /[<{\[](year|yyyy)[>}\]]/i.freeze
|
||||
FULLNAME_TEMPLATE_REGEX =
|
||||
/[\<\{\[]
|
||||
(fullname|name\sof\s(author|copyright\sowner))
|
||||
[\>\}\]]/xi
|
||||
[\>\}\]]/xi.freeze
|
||||
|
||||
# Get the list of the available license templates
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue