-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjusts the indentation of several project classes
- Loading branch information
1 parent
93bbb31
commit d7e5ce9
Showing
9 changed files
with
75 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
|
||
|
||
module YARD::CodeObjects::Cucumber | ||
|
||
class Feature < NamespaceObject | ||
|
||
attr_accessor :background, :comments, :description, :keyword, :scenarios, :tags, :value | ||
|
||
def initialize(namespace,name) | ||
def initialize(namespace, name) | ||
@comments = "" | ||
@scenarios = [] | ||
@tags = [] | ||
super(namespace,name.to_s.strip) | ||
super(namespace, name.to_s.strip) | ||
end | ||
|
||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,22 @@ | ||
|
||
|
||
module YARD::CodeObjects::Cucumber | ||
|
||
class Scenario < NamespaceObject | ||
|
||
attr_accessor :value, :comments, :keyword, :description, :steps, :tags, :feature | ||
def initialize(namespace,name) | ||
super(namespace,name.to_s.strip) | ||
|
||
def initialize(namespace, name) | ||
super(namespace, name.to_s.strip) | ||
@comments = @description = @keyword = @value = @feature = nil | ||
@steps = [] | ||
@tags = [] | ||
end | ||
|
||
def background? | ||
@keyword == "Background" | ||
end | ||
|
||
def outline? | ||
false | ||
end | ||
|
||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,23 @@ | ||
|
||
|
||
module YARD::CodeObjects::Cucumber | ||
|
||
class Tag < NamespaceObject | ||
|
||
attr_accessor :value, :owners | ||
|
||
def features | ||
@owners.find_all{|owner| owner.is_a?(Feature) } | ||
@owners.find_all { |owner| owner.is_a?(Feature) } | ||
end | ||
|
||
def scenarios | ||
@owners.find_all{|owner| owner.is_a?(Scenario) || owner.is_a?(ScenarioOutline) } | ||
@owners.find_all { |owner| owner.is_a?(Scenario) || owner.is_a?(ScenarioOutline) } | ||
end | ||
|
||
def indirect_scenarios | ||
@owners.find_all{|owner| owner.is_a?(Feature) }.collect {|feature| feature.scenarios }.flatten | ||
@owners.find_all { |owner| owner.is_a?(Feature) }.collect { |feature| feature.scenarios }.flatten | ||
end | ||
|
||
def all_scenarios | ||
scenarios + indirect_scenarios | ||
end | ||
|
||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
|
||
|
||
module YARD::CodeObjects | ||
|
||
class StepDefinitionObject < StepTransformerObject ; end | ||
class StepDefinitionObject < StepTransformerObject; | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
|
||
|
||
module YARD::CodeObjects | ||
|
||
class StepTransformObject < StepTransformerObject ; end | ||
|
||
class StepTransformObject < StepTransformerObject; | ||
end | ||
|
||
end |