Skip to content

Commit

Permalink
Merge pull request #169 from dylanratcliffe/issue-165
Browse files Browse the repository at this point in the history
Allow loading of symbols
  • Loading branch information
dylanratcliffe authored Apr 5, 2018
2 parents 2e90f21 + 1c41d8c commit 780e18f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
20 changes: 10 additions & 10 deletions features/run.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@ Feature: Run rspec and acceptance test suites
When I run onceover command "run spec"
Then I should see error with message pattern "The module acme-not_exists does not exist"

Scenario: Run advanced spec tests
Given control repo "puppet_controlrepo"
When I run onceover command "run spec"
Then I should not see any errors

Scenario: Check that control_branch functionality works
Given initialized control repo "control_branch"
When I run onceover command "run spec"
Then the temporary Puppetfile should contain the git branch

Scenario: Run with local modifications
Given initialized control repo "basic"
When I run onceover command "run spec"
Expand All @@ -42,6 +32,16 @@ Feature: Run rspec and acceptance test suites
And I run onceover command "run spec --force"
Then I should see message pattern "Overwriting local modifications"

Scenario: Run advanced spec tests
Given control repo "puppet_controlrepo"
When I run onceover command "run spec"
Then I should not see any errors

Scenario: Check that control_branch functionality works
Given initialized control repo "control_branch"
When I run onceover command "run spec"
Then the temporary Puppetfile should contain the git branch

Scenario: Mocking functions should work and return the correct data types
Given control repo "function_mocking"
When I run onceover command "run spec"
Expand Down
2 changes: 1 addition & 1 deletion lib/onceover/testconfig.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class TestConfig

def initialize(file, opts = {})
begin
config = YAML.safe_load(File.read(file))
config = YAML.safe_load(File.read(file), [Symbol])
rescue Errno::ENOENT
raise "Could not find #{file}"
rescue Psych::SyntaxError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ functions:
type: rvalue
returns:
foo: bar

opts:
:debug: true

0 comments on commit 780e18f

Please sign in to comment.