Merge pull request #2328 from github/specflow

Specflow
This commit is contained in:
Arfon Smith
2015-04-10 20:16:05 -05:00
2 changed files with 15 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ module Linguist
def generated?
xcode_file? ||
generated_net_designer_file? ||
generated_net_specflow_feature_file? ||
composer_lock? ||
node_modules? ||
godeps? ||
@@ -178,6 +179,17 @@ module Linguist
def generated_net_designer_file?
name.downcase =~ /\.designer\.cs$/
end
# Internal: Is this a codegen file for Specflow feature file?
#
# Visual Studio's SpecFlow extension generates *.feature.cs files
# from *.feature files, they are not meant to be consumed by humans.
# Let's hide them.
#
# Returns true or false
def generated_net_specflow_feature_file?
name.downcase =~ /\.feature\.cs$/
end
# Internal: Is the blob of JS a parser generated by PEG.js?
#

View File

@@ -66,5 +66,8 @@ class TestGenerated < Minitest::Test
generated_fixture_without_loading_data("Data/bootstrap.css.map")
generated_fixture_loading_data("Data/sourcemap.v3.map")
generated_fixture_loading_data("Data/sourcemap.v1.map")
# Specflow
generated_fixture_without_loading_data("Features/BindingCulture.feature.cs")
end
end