Hi, I'm trying to get rspec to run with Shoes, I've not much experience with rspec so I might be missing something obvious. Does anybody have any suggestions? The code I tried to run but didn't work is the following: http://gist.github.com/546240 Thanks, - fela
I don't really understand the purpose of that code, but 'exit' exits the entire application. On Mon, Aug 23, 2010 at 1:13 PM, Fela Winkelmolen <fela.kde@gmail.com>wrote: > Hi, > > I'm trying to get rspec to run with Shoes, I've not much experience > with rspec so I might be missing something obvious. Does anybody have > any suggestions? > > The code I tried to run but didn't work is the following: > > http://gist.github.com/546240 > > Thanks, > > - fela > -- ~devyn
On Wed, Aug 25, 2010 at 2:52 AM, Devyn Cairns <devyn.cairns@gmail.com> wrote: > I don't really understand the purpose of that code, but 'exit' exits the > entire application. I would like to test code that need Shoes, as most of the code inside HH depends on it. Suppose I want to test the default styles of Shoes. I would think to do something like the following: describe Shoes::App, "#style" do it "should have correct default values" do Shoes.app do style[:cap].should == nil style[:strokewidth].should == 1.0 end end end The code I posted what just the minimal rspec code that could be run with the Shoes interpreter thanks, - fela
I see. It might have something to do with 'spec/autorun'—try invoking RSpec with a method call inside the Shoes.app? On Wed, Aug 25, 2010 at 3:35 AM, Fela Winkelmolen <fela.kde@gmail.com>wrote: > On Wed, Aug 25, 2010 at 2:52 AM, Devyn Cairns <devyn.cairns@gmail.com> > wrote: > > I don't really understand the purpose of that code, but 'exit' exits the > > entire application. > > I would like to test code that need Shoes, as most of the code inside > HH depends on it. Suppose I want to test the default styles of Shoes. > I would think to do something like the following: > > describe Shoes::App, "#style" do > it "should have correct default values" do > Shoes.app do > style[:cap].should == nil > style[:strokewidth].should == 1.0 > end > end > end > > > The code I posted what just the minimal rspec code that could be run > with the Shoes interpreter > > thanks, > > - fela > -- ~devyn