Where can I find good examples of testing a Thor script with RSpec?
Asked Answered
O

2

19

Where can I find good examples of testing a Thor script with RSpec?

My searches have so far not turned up anything good.

Offset answered 15/8, 2011 at 5:37 Comment(0)
M
10

Try out Thor's own repo at https://github.com/wycats/thor/tree/master/spec

Meadows answered 31/1, 2012 at 19:18 Comment(1)
amazing. Thank you.Halmahera
W
6

I'm trying to do rspec tests for thor in my homedir project (in the homedir3 branch, at the moment). Look in the CLI_spec.rb file.

I don't claim they are the paragon of unit tests but it's something to look at.

Workable answered 2/3, 2012 at 6:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.