Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rename "feature tags" to "inherited tags"

  • Loading branch information...
commit 9035433ef716fbdee5c91a0ffc856d4ae78c7470 1 parent 817c34c
@jbpros jbpros authored
View
2  lib/cucumber/ast/assembler.js
@@ -42,7 +42,7 @@ var Assembler = function(features, filter) {
applyCurrentFeatureTagsToElement: function applyCurrentFeatureTagsToElement(element) {
var currentFeature = self.getCurrentFeature();
var featureTags = currentFeature.getTags();
- element.addFeatureTags(featureTags);
+ element.addInheritedtags(featureTags);
},
applyStashedTagsToElement: function applyStashedTagsToElement(element) {
View
8 lib/cucumber/ast/scenario.js
@@ -3,7 +3,7 @@ var Scenario = function(keyword, name, description, uri, line) {
var background;
var steps = Cucumber.Type.Collection();
- var featureTags = [];
+ var inheritedTags = [];
var tags = [];
var self = {
@@ -58,12 +58,12 @@ var Scenario = function(keyword, name, description, uri, line) {
tags = tags.concat(newTags);
},
- addFeatureTags: function addFeatureTags(newTags) {
- featureTags = tags.concat(newTags);
+ addInheritedtags: function addInheritedtags(newTags) {
+ inheritedTags = tags.concat(newTags);
},
getTags: function getTags() {
- return tags.concat(featureTags);
+ return tags.concat(inheritedTags);
},
getOwnTags: function getOwnTags() {
View
4 spec/cucumber/ast/assembler_spec.js
@@ -103,7 +103,7 @@ describe("Cucumber.Ast.Assembler", function() {
var feature, featureTags, element;
beforeEach(function() {
- element = createSpyWithStubs("AST element", {addFeatureTags: null});
+ element = createSpyWithStubs("AST element", {addInheritedtags: null});
featureTags = createSpy("feature tags");
feature = createSpyWithStubs("current feature", {getTags: featureTags});
spyOn(assembler, 'getCurrentFeature').andReturn(feature);
@@ -121,7 +121,7 @@ describe("Cucumber.Ast.Assembler", function() {
it("adds the feature tags to the element", function() {
assembler.applyCurrentFeatureTagsToElement(element);
- expect(element.addFeatureTags).toHaveBeenCalledWith(featureTags);
+ expect(element.addInheritedtags).toHaveBeenCalledWith(featureTags);
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.