Re: [rspec-users] rspec 2 helper spec problems

2010-12-28 Thread Jim Morris
Never mind sorry for the noise :) Guess I shouldn't have been working so late at night ;) I left out the it block! On Dec 27, 8:39 pm, Jim Morris wrote: > Hi, I have a working application_helper_spec.rb, and now I created a > posts_helper_spec.rb in the spec/helpers directory. > > But it looks l

[rspec-users] RSpec2 issue with RCov

2010-12-28 Thread Tiago Fernandez
Hello, I am experiencing an issue with RSpec2, while running RCov. In my Rakefile, I have a task defined like this: namespace :test do desc "Run all specs." RSpec::Core::RakeTask.new(:spec) do |t| t.pattern = 'spec/**/*_spec.rb' t.verbose = false end R

Re: [rspec-users] RSpec2 issue with RCov

2010-12-28 Thread David Chelimsky
On Tue, Dec 28, 2010 at 3:01 PM, Tiago Fernandez wrote: > Hello, > I am experiencing an issue with RSpec2, while running RCov. In my Rakefile, > I have a task defined like this: >     namespace :test do >       desc "Run all specs." >       RSpec::Core::RakeTask.new(:spec) do |t| >         t.patte

[rspec-users] BDD and Performance

2010-12-28 Thread Shea Levy
Hi all, What's the best way to implement performance enhancements from the outside-in? For example, if I'm working test-free and I know I'm going to be looking up my Shops by phone number often, I'll write a migration to make phone_number an index of the shops table. What feature(s) and spec(s)

[rspec-users] BDD and Interacting With External Resources

2010-12-28 Thread Shea Levy
Hi all, What's the best way to handle features which rely on an external API in a behaviour-driven way? Suppose I have an app which manages online ordering from several independent stores, with a cut taken from each purchase, and I want to add a feature whereby orders made by phone that were fa

[rspec-users] Webrat or RSpec and Table Headers

2010-12-28 Thread Shea Levy
Hi all, Suppose I have a table that lists all of my products, that includes a a somewhere in the first , and each product has its data held within a . After updating a product's description, I want to write something like: within "tr#category#{category.id}" do under_header "Description" do

Re: [rspec-users] Webrat or RSpec and Table Headers

2010-12-28 Thread Jonathan Linowes
On Dec 29, 2010, at 1:14 AM, Shea Levy wrote: > Hi all, > > Suppose I have a table that lists all of my products, that includes a a > Description somewhere in the first , and each product has its > data held within a . After updating a > product's description, I want to write something like: