Skip to content

Commit

Permalink
Remove remaining references to FC001, refs Foodcritic#1.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Crump committed Dec 1, 2011
1 parent 56a2b18 commit 6b46997
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
9 changes: 0 additions & 9 deletions features/step_definitions/cookbook_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@
expect_warning("FC#{code}", atts.nil? ? {} : {:file => 'cookbooks/example/attributes/default.rb'})
end

Then /^the node access warning 001 should be displayed for each match$/ do
expect_warning('FC001', :line => 1)
expect_warning('FC001', :line => 2)
end

Then /^the node access warning 001 should be displayed twice for the same line$/ do
expect_warning('FC001', :line => 1, :num_occurrences => 2)
end

Then /^the (?:[a-z ]+) warning ([0-9]+) should not be displayed$/ do |code|
expect_no_warning("FC#{code}")
end
Expand Down
6 changes: 0 additions & 6 deletions features/support/lint_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,13 @@ def write_recipe(content)
write_file 'cookbooks/example/recipes/default.rb', content
end

def write_attributes(content)
write_file 'cookbooks/example/attributes/default.rb', content
end

def run_lint
run_simple(unescape('foodcritic cookbooks/example/'), false)
end

def expect_warning(code, options={})
opt = {:line => 1, :expect_warning => true, :file => 'cookbooks/example/recipes/default.rb'}.merge!(options)
warning_text = case code
when 'FC001' then
'Use symbols in preference to strings to access node attributes'
when 'FC002' then
'Avoid string interpolation where not required'
when 'FC003' then
Expand Down

0 comments on commit 6b46997

Please sign in to comment.