Skip to content

Commit

Permalink
Added inspect to function return value
Browse files Browse the repository at this point in the history
Fixes #159
  • Loading branch information
Dylan Ratcliffe committed Mar 8, 2018
1 parent 22b36cf commit f89d8a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion features/run.feature
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ 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 correct spec tests
Scenario: Mocking functions should work and return the correct data types
Given control repo "function_mocking"
When I run onceover command "run spec"
Then I should not see any errors
2 changes: 1 addition & 1 deletion templates/test_spec.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe "<%= cls.name %>" do
MockFunction.new('<%= function %>', {:type => :statement})
<% else -%>
let!(:<%= function %>) { MockFunction.new('<%= function %>') { |f|
f.stubbed.returns(<%= params['returns'] %>)
f.stubbed.returns(<%= params['returns'].inspect %>)
}
}
<% end -%>
Expand Down

0 comments on commit f89d8a7

Please sign in to comment.