[rspec-users] Rspec for thor script

2012-09-14 Thread ankush m.
Hello all,
  I recently developed a CLI extending thor API.
While i was trying to write specs for thor's tasks, I couldn't find any
way to write the same for tasks with mandatory options or with  options.
So can anyone please guide me for the same?

-- 
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] Rspec for thor script

2012-09-14 Thread David Chelimsky
On Fri, Sep 14, 2012 at 11:31 AM, ankush m. li...@ruby-forum.com wrote:
 Hello all,
   I recently developed a CLI extending thor API.
 While i was trying to write specs for thor's tasks, I couldn't find any
 way to write the same for tasks with mandatory options or with  options.
 So can anyone please guide me for the same?

I haven't written any myself, but I'd recommend taking a look at
thor's own specs for guidance:
https://github.com/wycats/thor/tree/master/spec

HTH,
David
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users