Re: [rspec-users] Calling let(:something) from before blocks?

2010-11-05 Thread David Chelimsky
On Nov 5, 2010, at 3:39 PM, Christoph Schiessl wrote: > Hello! > > I find myself repeating the same `let(:something)` statements over and over > again in different view examples. Therefore, I wonder if it's possible to > define these globally in the spec_helper.rb file. I came up with the > f

Re: [rspec-users] Upgrade problems/questions regarding RSpec 1.3.0 to 2.0.1

2010-11-05 Thread Jarmo Pertman
I've created the issues. I'm copying them to here also to give an overview of the outcome of this thread. 1) 0 examples will be run if requiring "spec" https://github.com/rspec/rspec-core/issues/issue/212 2) add possibility to use multiple formatters at the same time https://github.com/rspec/rspe

Re: [rspec-users] Upgrade problems/questions regarding RSpec 1.3.0 to 2.0.1

2010-11-05 Thread Jarmo Pertman
On Nov 5, 1:52 pm, David Chelimsky wrote: > > 4) In 1.x i modified ExampleGroup's description in my html formatter > > to have some additional information in it like timestamp. I did it in > > example_group_started where the passed variable example_group was an > > instance of the ExampleGroup. In

[rspec-users] Calling let(:something) from before blocks?

2010-11-05 Thread Christoph Schiessl
Hello! I find myself repeating the same `let(:something)` statements over and over again in different view examples. Therefore, I wonder if it's possible to define these globally in the spec_helper.rb file. I came up with the following approach: # spec/spec_helper.rb RSpec.configure do |conf

Re: [rspec-users] Upgrade problems/questions regarding RSpec 1.3.0 to 2.0.1

2010-11-05 Thread Jarmo Pertman
I didn't refresh my browser before writing that reply thus didn't see that you had already answered. Going to create those issues soon. Thanks for your feedback! Jarmo On Nov 5, 5:06 pm, David Chelimsky wrote: > On Nov 5, 2010, at 7:02 AM, Jarmo Pertman wrote: > > > I'd wait for some prelimina

Re: [rspec-users] rspec: command not found

2010-11-05 Thread Katrina Owen
On Fri, Nov 5, 2010 at 6:19 PM, Tau Christiansen wrote: > I am new to ROR.  Trying to going through tutorial, but couldn't run > rspec (command not found).  Everything was installed as directed. > Search the hold drive, found spec file and spec.bat in the following > directories Did you call ra

[rspec-users] rspec: command not found

2010-11-05 Thread Tau Christiansen
I am new to ROR. Trying to going through tutorial, but couldn't run rspec (command not found). Everything was installed as directed. Search the hold drive, found spec file and spec.bat in the following directories ./usr/lib/ruby/lib/ruby/gems/1.8/bin/rspec ./usr/lib/ruby/lib/ruby/gems/1.8/bin/rs

Re: [rspec-users] Upgrade problems/questions regarding RSpec 1.3.0 to 2.0.1

2010-11-05 Thread David Chelimsky
On Nov 5, 2010, at 7:02 AM, Jarmo Pertman wrote: > I'd wait for some preliminary answers from you or anyone else from > core before opening up any new issues. The main blockers for me to > start using RSpec 2 are currently the subject {self} and html > formatter snippet problems. > > Hopefully yo

Re: [rspec-users] Apparent regression in rspec 2 on ruby 1.9: constant resolution fails in describes in nested modules

2010-11-05 Thread Rhett Sutphin
Hi, On Nov 5, 2010, at 7:13 AM, David Chelimsky wrote: > On Nov 3, 2010, at 5:39 PM, Rhett Sutphin wrote: > >> Hi, >> >> I've converted a couple of my smaller libraries' spec suites to rspec 2 with >> no trouble. (I'm enjoying the new version -- thanks to all involved.) I'm >> trying to con

Re: [rspec-users] Upgrade problems/questions regarding RSpec 1.3.0 to 2.0.1

2010-11-05 Thread Jarmo Pertman
I'd wait for some preliminary answers from you or anyone else from core before opening up any new issues. The main blockers for me to start using RSpec 2 are currently the subject {self} and html formatter snippet problems. Hopefully you'll find some time to answer to my provided feedback. Jarmo

Re: [rspec-users] Upgrade problems/questions regarding RSpec 1.3.0 to 2.0.1

2010-11-05 Thread David Chelimsky
On Nov 4, 2010, at 4:28 PM, Jarmo Pertman wrote: > On Nov 4, 9:52 pm, Jarmo Pertman wrote: >> I cannot reproduce this problem currently with standard html formatter >> although i don't do anything with snippet extractor in my custom html >> formatter. I need to investigate why the problem happen

Re: [rspec-users] Upgrade problems/questions regarding RSpec 1.3.0 to 2.0.1

2010-11-05 Thread David Chelimsky
On Nov 4, 2010, at 7:18 PM, Jarmo Pertman wrote: > Upgrade to RSpec 2.x has been more painful than i expected. A lot more > painful. > > Subject#subject behavior with "self" is also broken! > > This fails in RSpec 2 with stack overflow: > describe "something" do > subject { self } > > it "is

Re: [rspec-users] Upgrade problems/questions regarding RSpec 1.3.0 to 2.0.1

2010-11-05 Thread David Chelimsky
On Nov 4, 2010, at 3:37 PM, Jarmo Pertman wrote: > There seems to be also a problem when using RCov raketask - it doesn't > seem to load RSpec. > > Consider the following project structure: > > # Rakefile > require 'rspec/core/rake_task' > RSpec::Core::RakeTask.new(:spec) do |spec| > end > > R

Re: [rspec-users] Apparent regression in rspec 2 on ruby 1.9: constant resolution fails in describes in nested modules

2010-11-05 Thread David Chelimsky
On Nov 3, 2010, at 5:39 PM, Rhett Sutphin wrote: > Hi, > > I've converted a couple of my smaller libraries' spec suites to rspec 2 with > no trouble. (I'm enjoying the new version -- thanks to all involved.) I'm > trying to convert one a larger suite now and I've run into two problems on > r

Re: [rspec-users] Upgrade problems/questions regarding RSpec 1.3.0 to 2.0.1

2010-11-05 Thread David Chelimsky
On Nov 4, 2010, at 2:21 PM, Jarmo Pertman wrote: > Hello! Hello! > I'm trying to migrate my scripts from RSpec 1.3.0 to 2.0.1 having some > issues so far. > > 1) I don't like is that ".rspec" has to be in the working directory > and cannot be anymore in "spec". Okay, i can issue "mv spec/ > spe

[rspec-users] Autotest not even starting

2010-11-05 Thread Nicholas Wieland
Hi *, I'm trying to implement the Warden middleware, but apparently warden is making autotest crash. Here is the backtrace: https://gist.github.com/657378/a2c8fc15a179331d23f9015a6aba75a0a635121f Specs and features run as normal. This is what is in strategies.rb: https://gist.github.com/663795