Re: [rspec-users] Aidmock - safe mocking

2011-01-16 Thread David Chelimsky
On Jan 16, 2011, at 5:52 PM, Wilker wrote: > Hi guys, > > I launched some days ago a new project that aims to make the use of mocks > safer. > This is the URL of project: https://github.com/wilkerlucio/aidmock > > The basic idea is to make user define interfaces of classes, when user > defines t

Re: [rspec-users] Sudden rspec problem

2011-01-16 Thread Rich Price
OK - I found the problem. While correcting the spelling of a class name in fmutil.rb I lost the leading capital letter. Oh! The embarrassment! Thanks. On 01/16/2011 06:48 PM, Rich Price wrote: The first two lines are: require '../code/fmutil.rb' require '../code/fmgrid.rb' I had not updated a

Re: [rspec-users] Sudden rspec problem

2011-01-16 Thread Rich Price
The first two lines are: require '../code/fmutil.rb' require '../code/fmgrid.rb' I had not updated any gems between the test that worked and the one that produced these results. On 01/16/2011 05:51 PM, Mike Mazur wrote: Hi, On Mon, Jan 17, 2011 at 06:47, Rich Price wrote: I was using r

Re: [rspec-users] Sudden rspec problem

2011-01-16 Thread David Chelimsky
On Jan 16, 2011, at 4:47 PM, Rich Price wrote: > I was using rspec 2.4.0 to test some code > and it was working fine then suddenly I get > > rich@richlaptop2:~/Documents/fakemap/rspec$ rspec block.rb > /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': > ../code/fmutil.rb

Re: [rspec-users] Sudden rspec problem

2011-01-16 Thread Mike Mazur
Hi, On Mon, Jan 17, 2011 at 06:47, Rich Price wrote: > I was using rspec 2.4.0 to test some code > and it was working fine then suddenly I get > > rich@richlaptop2:~/Documents/fakemap/rspec$ rspec block.rb > /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': > ../code/fmut

[rspec-users] Aidmock - safe mocking

2011-01-16 Thread Wilker
Hi guys, I launched some days ago a new project that aims to make the use of mocks safer. This is the URL of project: https://github.com/wilkerlucio/aidmock The basic idea is to make user define interfaces of classes, when user defines the class interface (which is something like defining method

[rspec-users] Sudden rspec problem

2011-01-16 Thread Rich Price
I was using rspec 2.4.0 to test some code and it was working fine then suddenly I get rich@richlaptop2:~/Documents/fakemap/rspec$ rspec block.rb /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': ../code/fmutil.rb:145: class/module name must be CONSTANT (SyntaxError)

Re: [rspec-users] formatting of one-line specs - question

2011-01-16 Thread David Chelimsky
On Jan 16, 2011, at 1:35 PM, andyl wrote: > For easy editing, I love one-line specs, like this: > > specify { 1.should == 1 } > > But when using '--format documentation', one-line specs don't always > render useful documentation. > > A solution is to write one-line specs using do/end: > > it

[rspec-users] formatting of one-line specs - question

2011-01-16 Thread andyl
For easy editing, I love one-line specs, like this: specify { 1.should == 1 } But when using '--format documentation', one-line specs don't always render useful documentation. A solution is to write one-line specs using do/end: it "succeeds with do/end" do 1.should == 1 end That's ok - but

[rspec-users] Rspec2 partial view gives nil:NilClass. Why?

2011-01-16 Thread poseid
Hello, I am trying to get going with development of view components with Rspec2 and Rails3. However, I make the following observation, and I don't understand what is going on, and how to fix this. In my spec I define: describe "main/index.html.erb" do it "displays a photo url in products p